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

Why I can not get list of transitions via the RESR API

My workflow is defined as follows (it is default created by designer):

issueWorkflow.pngissuetext.jpg

When I ues browser I can see list of transition:IssueList.jpg

But when I try use TEST API I can not get get list of transition:

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-issueidorkey-transition-get 

IssueGet.jpg

Why I can not get list of transitions via the RESR API?

 

1 answer

1 accepted

1 vote
Answer accepted

This is counter-intuitive I think and not explained well in the docs, but Issues are not the same thing as Requests.

A request is a wrapper around an issue, for the benefit of the customers - customers only see requests, but Agents get to see both the request and the issue behind it.

These two artifacts both have workflow elements.  The workflow for the issue is what you have given us a screenshot of.  The issue will be moved through that workflow by the agent.

But your REST call is trying to fetch the transitions for the request.  These are not the transitions in the issue workflow directly.  They are transitions that your admins have made available to the customer, which then transition the issue as well.  In this case, I suspect you have not made any transitions available to the customer on their requests, so the call to get transitions is returning empty.

Either you'll want to map some transitions for the customer requests, or, if you really do want to work with the issue transitions, use the Jira (Core) api for it - /rest/api/3/issue/{issueIdOrKey}/transitions

KING Answer!!!

Thanks!!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Submit your Jira Service Management use case and win!

Hi everyone - in case you haven’t heard, we’re hosting the show of the century on November 10th: High Velocity: ITSM World Tour.     This virtual, concert-themed experience...

285 views 1 10
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