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!!
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know that, Please accept my answer if it was useful, it will help other community members looking for answer on similar question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.