I am using an on premises edition of Jira server V8.15.0 and writing code in C#
The issue is already created so I used an API call to get the metadata and thus the id for the issue.
I then used: "/baseUrl/api/2/project/projectKey/statuses" to get all the statuses for the project and thus the status id corresponding to the status I want to transition the issue to.
I then created a response body:
"{\"transition\": {\"id\": \"" + statusId +"\"}}"
-or-
{"transition": {"id": "statusId"}}
I then POST the request to:
"/baseUrl/api/2/issue/issueId/transitions";
however this generates a 500 code "Internal Server Error"
Any idea what I could be doing wrong?
Thanks,
Ken O'Brien