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

REST API: Deleted Release vehicle information still listed by the REST API Feature endpoint.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 10.113.2
    • REST API
    • None
    • 1
    • Severity 3 - Minor
    • No

      Issue Summary

      Release vehicle information still listed in the REST API output of Feature even after it was deleted

      Steps to Reproduce

      1. Create a new Release Vehicle (myRV)
      2. Create a new Feature (myFeature) or choose an existing one
      3. Associate the feature to the release vehicle (MyRV)created in step 1
      4. Delete the Release Vehicle (MyRV)
      5. Verify that the release Vehicle is not shown anymore in the UI (Feature details slide-out)
      6. Use the Jira Align REST API to retrieve the feature (myFeature)
        with for example: https://<site-url>/rest/align/api/2/features/<feautureId>

      Expected Results

      The Release Vehicle information corresponding to the deleted id is removed from the REST API response body for the given feature

      Actual Results

      The REST API response body for the Feature still has the Release Vehicle information (like their example), although the UI doesn't show it.

          {
              "id": 12998,
              "title": "MyFeature",
              "description": " MyFeature",
              "releaseId": 496,
              "ownerId": "661727",
      ...
              "itemToSyncDate": "2022-11-04T12:52:30Z",
              "releaseVehicleIds": [
                  298
              ],
      ...
      

      Workaround

      You can remove the Release vehicle from the feature using a PUT or PATCH call on the feature endpoint: https://<site-url>/rest/align/api/2/features/<feautureId>.
      For example, for a PATCH call, you can use request bodies such as:

          {
              "op": "replace",
              "path": "/releaseVehicleIds",
              "value": []
          }
      

      or if you have more than one release vehicle and want to keep them

          {
              "op": "replace",
              "path": "/releaseVehicleIds",
              "value": [<RVid1toKeep>,<RVid2toKeep>]
          }
      

              csmith1@atlassian.com Cap Smith
              646db21d89d1 Francois Panaget
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: