It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

not able to change issue transition via API

doing:

curl -D- -u USER:PASS -X POST --data '{"transition": {"id": "41"}}' -H "Content-Type: application/json" https://DOMAIN.atlassian.net/rest/api/3/issue/ISSUE-123/transitions?expand=transitions.fields

returns 400: "{"errorMessages":["Can't move (ISSUE-123). You might not have permission, or the issue is missing required information. If you keep having this problem, contact your Jira Administrator."],"errors":{}}"

included this user in every group there is. added permissions for every action in a permission scheme that serves this project. ??

PUT to the same issue works just fine:

curl -D- -u USER:PASS -H "Content-Type: application/json" -X PUT -d '{"name":"user"}' https://DOMAIN.atlassian.net/rest/api/3/issue/ISSUE-123/assignee

3 answers

Hi @Andrey Osadchenko,

Welcome to the community!

It looks like the you're missing the required fields. May be you can check it on the UI and verify the required fields and then add them to your data option here in the curl and then try posting it. May be something like a comment is required!?

Thanks,

Lava

"May be something like a comment is required!?" . how do I figure that out?

if I transition manually from interface with this same user, it works just fine

Can you verify the request that is sent to the server using the network tab on your browser developer tools?

could you or someone provide a curl example as to how would one retrieve all mandatory fields for a transition?

Sure,

Can you try the GET with query param expand=projects.issuetypes.fields ?

 https://DOMAIN.atlassian.net/rest/api/3/issue/ISSUE-123/transitions?expand=projects.issuetypes.fields

This should get all the fields information.

Can you try

<domain>/rest/api/2/issue/createmeta?expand=projects.issuetypes.fields

in the browser and paste that information?

HI Andrey, 

Please could you let me know if this issue is resolved. I am facing the same problem.

 

Best regards,

Abhiram

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

273 views 1 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you