Attempting to add a program to a PI via API when user does not belong to all program teams in the PI fails with "Cannot update release with id # . Value for programIds is invalid.""

XMLWordPrintable

      Issue Summary

      If a user attempts to add a program to a PI, as a Portfolio member of both the program and the PI, via API, they get the following error: "Cannot update release with id # . Value for programIds is invalid."" User can add the same program to the PI via UI without issue. User can only add programs to the PI via API if they are a direct member of all program teams contained in the PI.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Authenticate to API with user token that is not a super admin or a direct program member to all teams, but is a portfolio member of both PI and Program.
      2. Run PATCH operation on target PI to add Program.
        Example payload:
        PATCH https://alignsupport.jiraalign.com/rest/align/api/2/Releases/10
        [
            {
                "op":"add",
                "path":"programIds/-",
                "value": 200
            }
        ]
        

      Expected Results

      PI is updated with additional program via API.

      Actual Results

      Error "Cannot update release with id # . Value for programIds is invalid." occurs

      Workaround

      If the end user is placed into all Program teams contained in the PI, they can add to the PI via API without issue. Alternatively, you can add programs via the UI.

              Assignee:
              Juan Arias
              Reporter:
              Christopher Stringari (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: