Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,083
Community Members
 
Community Events
184
Community Groups

While creating an issue using REST API unable to set issue Status value "In progress"

Edited

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.

 

Status not updated.jpg

 

 

Can you please help us how we can fix this issue?

Please find attached screenshot for your reference.

Regards,

Dnyaneshwar Borase

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 19, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM Trial
TAGS
AUG Leaders

Atlassian Community Events