You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
I am using REST API to create the issue in Jira and I am able to set all the system field and custom field.
Expect I am unable to set the status field and got an error is in attached image.
Also, when I am creating the issue manually, I am not getting that "Status" field on screen while creating an issue.
Can you please help us how we can fix this issue?
Please find attached screenshot for your reference.
Regards,
Dnyaneshwar Borase
Hi,
When you create an issue in Jira, you are not expected to be able to set the status of that issue. Nor can you simply edit the status field like other issue fields. Instead the status is expected to be changed by calling a transition. That transition will change the issue into another status.
As such you should be calling the endpoint POST /rest/api/3/issue/{issueIdOrKey}/transitions to change the status of the issue. Within that payload should be an element such as
"transition": { "id": "5" }
Where 5 is the id value of the transition name (which is sometimes the same as the status to transition to, but not always). You might need to refer to the workflow that issue is in to better understand the correct transition to call. Try GET /rest/api/3/issue/{issueIdOrKey}/transitions to see what is available to that issue in the present state.
I hope that helps.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.