I need to chnage status of jira service desk ticket to pending from In progress and to chnage tikcet to Pending from in progress two fields are mandatory,
which are “Pending reason” and “External comment” which shows “response to customer” in jira. automation able to do both like updating pending reason and external comment uisng API.
When automatio trying to change status using API after updating both values, i am getting below error
"comment is mandatory when chnaging the status to pending.{“comment”:transition’s comment is required}
Why after updting coment still it is showing comment is required?
pLease help me to solve this issue.
I am using service account to chnage status and updating comments. @Cristian_Negulescu
yes you are right sending 2 saperate requests for updating coment and chnaging status . if i need to include in on ethen how can i achive that what will be the url and body
because for comments url end with “ticketkey/comment” and for status url end with “tikcetkey/transitions?expands=transitions.fields”
yes same url i have so question is where should i include my comment body.
in my api call which changes status have body like below
“{”“transitions”“:{”“id”“:”“871"”}
and in my api call which updates comments have body like below
“{”“body”“:”“Testing”“,”“public”“:false)”
how can i combine these both or should i need to write comment somewhere else in HTTP call of my status change.
when i am trying with this “{”“transitions”“:{”“id”“:”“871"”,““fields””:{““body””:““Testing””}}"
error is - {“body”: field ‘body’ cannot be set.it is not on approprate screen or unknown}
and when i am using this “{”“transitions”“:{”“id”“:”“871"”,““description””:““Testing””}"
error - need to update comment field
one more doubt
we are using this end point to change staus and comment -“+KEY+”/transitions?expand=transitions.fields" - last part of end point
but to chnage comment we requiers this -“+KEY+”/comment" in end point as per jira.
so how comment will get update?
just question