Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-3412

API 2.0 : Milestones : POST : Unable to create a Portfolio-tier milestone and assign a theme at the same time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 10.98.0
    • 10.97.2
    • REST API
    • 1
    • Severity 3 - Minor
    • No

    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

      1. 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

      1. Create the Portfolio-tier milestone with only basic (required) fields
      2. Make a PATCH call to link themeId

      Attachments

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              rcortez@atlassian.com Rodrigo Cortez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync