Details
-
Bug
-
Resolution: Fixed
-
Medium
-
10.110.2
-
1
-
Severity 2 - Major
-
No
Description
Issue Summary
Changing a Portfolio or Solution Objective to a different Tier fails to clear original Tier ID resulting in API 400 errors for PUT and PATCH.
Steps to Reproduce
- Create a Solution Objective
- Change Objective's Tier to any other value (Portfolio, Solution or Team) & Save on UI
- Do API GET on Objective and notice that the solutionId is still populated
- Do API PATCH on Objective to change status
[ { "op": "replace", "path": "/status", "value": 2 } ]
Expected Results
Objective's original Tier ID field (e.g. solutionId) is cleared when transitioning to a different Tier. API PUT / PATCH calls work as expected.
Actual Results
Objective's original Tier ID field (e.g. solutionId) is not cleared when transitioning to a different Tier. API PUT / PATCH calls fail with 400 status as a result. Example errors:
Cannot update milestone with id <ID>. Portfolio milestone cannot have a SolutionId. Cannot update milestone with id <ID>. Value for solutionId is invalid. Cannot update milestone with id <ID>. Value for portfolioId is invalid.
- The same problem is observed when transitioning an Objective from "Portfolio" to any other Tier... i.e. the portfolioId is not cleared, which results in the same types of API errors.
Workaround
Remove the old Tier ID via API PATCH.
[ { "op": "remove", "path": "/solutionId" } ]
Attachments
Issue Links
- resolves
-
PS-106503 Loading...