Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rest API gives incomplete list of transitions

Edited
JAcek Ok I'm New Here Jan 11, 2022

Hello,

On Jira Service Management Server, I'm trying to find a way to move a Request from "In progress" to "Pending" via REST API. I've been using the calls described in https://docs.atlassian.com/jira-servicedesk/REST/4.21.0/ and it seems that, first of all, I can check possible transitions for a given issue by:

curl -H "Authorization: Bearer {TOKEN}" -H "X-ExperimentalApi: opt-in" -X GET -H "Content-Type: application/json" {URL}/request/{ISSUE ID}/transition

However, it seems that the list of possible transitions does not match the list of available options when the request is accessed via the Dashboard. 

For example, when the request is in progress, the possible options in the Dashboard are "Resolve this issue" and "Cancel request" what matches the possible transitions shown via API:

"values":[{"id":"761","name":"Resolve this issue"},{"id":"901","name":"Cancel request"}]}

However, when the request is moved to "Resolved" the dashboard shows the option "Back to in progress", but the API does not show such possibility:

"values":[]

It's similar also for other statuses (in a nutshell, it seems to never give the option to move it to "Pending" or "In progress"). Why is the scope of possible transitions not always in line between dashboard and REST API? 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

769 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you