Forums

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

I need to update jira tikcet status to pending from in progress but getting an error.

kunal August 26, 2024

Hello,

I need to update jira status to pending form in progress and to achieve this we need to update pending reason field and external comment so only after that sttaus will move to pending.

i am doing api call to update pending reason and call is successfull.

but when i am trying to update external comment and then status sapertely then it wont works, i got to know we need to update comment (external) and status in one api call.

code for pending sttaus is - 871

i have tried below combitnations

1] “{”“transitions”“:{”“id”“:”“871"”,““fields””:{““body””:““Testing””}}"

got this error - 

 

{“body”: field ‘body’ cannot be set.it is not on approprate screen or unknown}

2]“{”“transitions”“:{”“id”“:”“871"”,““description””:““Testing””}"

got this error -

 

need to update comment field

3]“{”“transitions”“:{”“id”“:”“871"”,““fields””:{““comment””:““Testing””}}"

got this error- 

 

{“coment”:field does not suport update ‘comment’}

 

when i do saperate calls , comments (external) update works -body which i am using to call it saperatrely is - 

"{ ""body"": "" Automation is still in progress"", ""public"": false}"

 

help me o same as early as possible

let me know what will be the correct body to do api call so that both comment and status will get updated

1 answer

0 votes
John Funk
Community Champion
August 26, 2024

Hi Kunal - Welcome to the Atlassian Community!

There is probably a Validator or two on the transition to Pending in your workflow. Can you verify that? 

kunal August 26, 2024

checked no validator

John Funk
Community Champion
August 26, 2024

That is strange then that it won't let you transition the issue. Have you tried to just do the transition without the other items first? 

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer