Forums

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

Service desk transitions not appearing in api but exist in workflow

Gal Forer December 24, 2020

Hi, I have the workflow:

Screen Shot 2020-12-24 at 12.09.14.png but when I use the api get attachment I don't get the transitions for resolved issue but I do get the transitions for in progress ticket, I would love to know how to have it so an issue would have transactions.

This is the url for the get request for the api:

https://companyName.atlassian.net/rest/servicedeskapi/request/SDCS-402/transition

2 answers

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 24, 2020

This will happen if the transitions have conditions on them.  The REST API, like the UI, will only show you ones that can be used by the current user.

Sagi Timinsky December 27, 2020

Hi Nic,

I'm working with Gal,

just wanted to verify that this is what you mean:

 

 In the UI I have two transactions:
Screen Shot 2020-12-27 at 11.29.58.png

 

 

but when I try to see the active transactions for this ticket from the API I get:

Screen Shot 2020-12-27 at 11.31.12.png

 

as you can see the values array is empty.

 

Have you encountered this? Do you have any suggestions on what to do in this case?

Thank you very much for your help!

 

Sagi

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 27, 2020

Is it the same user using the UI and REST?  

Sagi Timinsky December 27, 2020

I'm using an API token to send the POST request.

https://confluence.atlassian.com/cloud/api-tokens-938839638.html

 

but yes, I have created the api-token from the same user as in the UI

Sagi Timinsky January 16, 2021

This is still relevant. Help will be very much appreciated!


Thank you

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2021

The other thing you might be missing is the difference between the transitions available to the agent and the customer.

Note that the rest call being made here is for the request transitions, not the issue transitions.

0 votes
Robin Weiß December 24, 2020

Just a Problem I recently had (not with the API) do you have some conditions for this transition? Maybe you first have to pass the condition.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events