I am trying to use the API end point rest/api/2/issue/<key>/transitions to transition a subtask to canceled. I am posting the request message as
{"update": {"comment": [{"add": {"body": "Resolved via automated process."}}]},"transition": {"id": "791"},"fields": {"resolution": {"name": "Canceled"}}}
I was able to pull the transition id from my workflow in Issues -> Workflow
when I execute the following endpoint I get the following error: 500
{"errorMessages":["Internal server error"],"errors":{}}
Any help would be great
500 internal error generally means something unexpected happened, do you have access to the logs?
Would be interested in seeing what {{ jira_home }}/log/atlassian-jira.log has to say when you try to do the transition, it should say more on what specifically was the problem.
Looking at https://docs.atlassian.com/software/jira/docs/api/REST/9.6.0/#api/2/issue-doTransition it says 500 when transition ID is incorrect, are you absolutely certain the id is right?
Thanks for the response. I do believe I have the correct id, here is where I found it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I realized I was referencing the wrong workflow. Once I add the correct id, I no longer got this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.