Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to transition a subtask to canceled

David Whitlock February 22, 2023

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

1 answer

1 accepted

0 votes
Answer accepted
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 22, 2023

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?

David Whitlock February 23, 2023

Thanks for the response. I do believe I have the correct id, here is where I found it

Screenshot 2023-02-23 075729.png

David Whitlock February 23, 2023

I realized I was referencing the wrong workflow. Once I add the correct id, I no longer got this error.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events