Forums

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

About the status field of issue

臭豆腐汉堡
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 18, 2022

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

1 accepted

2 votes
Answer accepted
Kishan Sharma
Community Champion
August 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.

臭豆腐汉堡
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2022

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

Kishan Sharma
Community Champion
August 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
AUG Leaders

Atlassian Community Events