Description
Issue Summary
Unable to create (POST) a Portfolio-tier milestone and assign a theme, at the same time, unless some program is informed in the request body.
- Per UI, once a Portfolio-tier milestone is created, all programs under the selected portfolio are automatically linked, therefore only linked themes are available for selection.
Steps to Reproduce
- Make a POST call to the milestones endpoint, with the following parameters:
{ "tier": 4, "name": "Milestone Name", "description": "Milestone description", "ownerId": "<id>", "portfolioId": <id>, "themeId": <id> }
Expected Results
- The Portfolio-tier milestone is created and all linked programs to the assigned portfolio are automatically linked, as in UI
Actual Results
- An HTTP 400 Bad Request error is thrown
Workaround #1
- Gather all program IDs assigned to the corresponding portfolio
- Send programIds property in the request body, as in the example below:
{ "tier": 4, "name": "Milestone Name", "description": "Milestone Description", "ownerId": "<id>", "portfolioId": <id>, "themeId": <id>, "programIds": [ <id>, <id>, <id> ] }
Workaround #2
- Create the Portfolio-tier milestone with only basic (required) fields
- Make a PATCH call to link themeId
Attachments
Issue Links
- resolves
-
PS-80360 Loading...