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
Hi @Ken O_Brien
Have you checked the application logs? atlassian-jira.log file will lead you to this problem as the devil is in the details.
I have checked the application log file (atlassian-jira.log, actually the server guy just sent me a copy of it) at about the time the internal error is generated. I see nothing suspicious. No mention of an error. No mention of transition. No mention of status. However, whenever I try to perform a transition it throws it back at me with "Internal Server Error". Maybe I just don't know what to look for. It is possible to transition an issue on Jira server through the API correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.