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,360,958
Community Members
 
Community Events
168
Community Groups

About the status field of issue

Hi,friends!Could you please tell me about how to chenge the status of issues by rest API or java jar?? I try so many times but can‘t do that!! Thank you!!

1 answer

2 votes
Kishan Sharma Community Leader Aug 18, 2022

Hi @臭豆腐汉堡 

Welcome to the Atlassian Community!

If you are using cloud refer - Transition Issue via REST API on cloud 

If you are using Data Center/ Server, refer - Transition Issue via REST API on Server/DC 

Here's an example for server/DC :

Use POST method on - https://myjira.com/jira/rest/api/2/issue/TICKET-1/transitions

With below JSON Body - 

{
"transition": {
"id": "100"
}
}


Curl Example below -

curl -u ADMIN --request POST \
--url 'https://myjira.com/jira/rest/api/2/issue/TICKET-1/transitions' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"transition": {
"id": "100"
}
}'

Hope this helps.

Thank you sir, it is really useful! I have worked out my problem now!

Kishan Sharma Community Leader Aug 26, 2022

Good to know that, Please accept my answer if it was useful, it will help other community members looking for answer on similar question.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,048 views 18 32
Read article

Atlassian Community Events