-
Bug
-
Resolution: Fixed
-
High
-
None
-
1
-
Severity 2 - Major
-
No
Issue Summary
Can't create (POST) or update (PATCH) stories using API when passing the
jiraProjectKey in the endpoint rest/align/api/2/stories/STORY-ID.
The API returns the following error 400:
Cannot create story. Value for jiraProjectKey is invalid.
or
Cannot update story with id XXXXXX. Value for jiraProjectKey is invalid.
Steps to Reproduce
- Run a PATCH or POST rest/align/api/2/stories/STORY-ID to add or update a Story adding a Jira Project there
- Example of body/payload for POST can be the following
{ "title": "Luiz Story API", "description": "Luiz Example", "featureId": featureId, "type": 1, "state": 0, "programId": programId, "releaseId": releaseId, "iterationId": iterationId, "teamId": teamId, "jiraProjectKey": "Jira Project Key", "tags": "tag" }
- The example of body/payload for POST can be the following
[ { "op": "replace", "path": "/jiraProjectKey", "value": "LA" } ]
Expected Results
Jira Align API creates the Story with the Jira Project set already.
Actual Results
The API return the following error 400:
Cannot create story. Value for jiraProjectKey is invalid.
or
Cannot update story with id XXXXXX. Value for jiraProjectKey is invalid.
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available
- is related to
-
ACE-7073 Loading...
- resolves
-
ALIGNSP-27381 Loading...