-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
10.113.2
-
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
- Create a new Release Vehicle (myRV)
- Create a new Feature (myFeature) or choose an existing one
- Associate the feature to the release vehicle (MyRV)created in step 1
- Delete the Release Vehicle (MyRV)
- Verify that the release Vehicle is not shown anymore in the UI (Feature details slide-out)
- 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>] }
- duplicates
-
JIRAALIGN-4483 Deleted items should not be returned in the API
- Closed
- resolves
-
ALIGNSP-16142 Loading...