Forums

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

Ticket is not able to transition through rest api

Swastik Mishra
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!
July 21, 2023

This is the body everything works except the transition

Put method
{{baseUrl}}/rest/api/3/issue/:issueIdOrKey

 

{
"fields": {
"assignee": {
"accountId": "account_id"
}
},
"update": {
"comment": [
{
"add": {
"body": {
"content": [
{
"content": [
{
"text": "Ticket is marked as closed through SH Automation Testing",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
}
}
]
},
"transition": {
"id": "7"
}

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2023

Hi @Swastik Mishra 

I think your actions in the call are in the wrong order.

You need to Transition first.

But As @Mohamed Benziane mentioned, log information would help to get insight in the problem

0 votes
Mohamed Benziane
Community Champion
July 22, 2023

hi,

welcome to the community

do you have an error message ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events