Forums

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

Not able to transition the issue status

Deleted user August 3, 2022

I have used this api

"https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put"

To transition the issue status from "To Do" to "Done" But not happening.

payload = json.dumps({
"transition": {
"id": "3"
},
"update": {
"customfield_10028": [
{
"set": 5
}
]
}
})

 

Above is my payload body for "PUT" request.

I want to transition the issue using this API only. I don't want to do by other method.

What to do? 

1 answer

0 votes
Tansu Akdeniz
Community Champion
August 3, 2022

Hi @[deleted] 

Please check "Transition Issue" rest operation: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post

You should use "POST" for this.

Deleted user August 3, 2022

Thanks @Tansu Akdeniz 

But I have clearly mentioned that I want to do this operation using 

"https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put"

this api only.

Tansu Akdeniz
Community Champion
August 3, 2022

I haven't tried performing transition with edit issue api. Maybe you can only pass transition id and remove cf in JSON to go step by step.

Also, what is the cf type and request response?

Deleted user August 3, 2022

Thanks @Tansu Akdeniz  for your reply.

If I use only transition Id then I got an error message-

{"errorMessages":["one of 'fields' or 'update' required"],"errors":{}}

 

So, I have to use "update" or "fields" in the request body.

 

Cf type is a number it is for "Story Points" field.

hope this will help you to solve my problem.

Suggest an answer

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

Atlassian Community Events