Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I have used this api
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?
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.
Thanks @Tansu Akdeniz
But I have clearly mentioned that I want to do this operation using
this api only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.