Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to find all the Option ID's for the Customer Request Types

Hello,

Im looking to add in some Workflow Transition Conditions so that agents can only move tickets raised with a particular Customer Request Type to a particular Status.

 

I have figured out already by reading articles in the Atlassian Community that this will only work if you set the Comparison Type to 'Option ID' 'See Screenshot'

image.pngThe only thing i cant work out is how to get a list of all the Request Types and their corresponding ID's.

 

Is there a way of doing this using API?

 

Cheers

 

Phil

1 answer

0 votes

@PhilSpo If you go to your Project Settings > Request Types then click on Edit Fields for each request type, there will be a number right at the end of the URL, this is the ID for that request type.

Alternatively, you can enter:

"https://your-domain.atlassian.net/rest/api/3/issue/DEMO-1" (where DEMO-1 is the key of a Jira issue in your instance which has a request type associated with it)

By then doing a Cntrl+F if you search for requesttype it will reveal the ID of the request type used for this Jira issue (in example below, the ID of my request type is 53). You would have to repeat this for other tasks of other request types, so I think the first method would be much quicker

request.PNG

Hope this helps!

Hello,

 

I managed to work it out:

 

https://your-domain.atlassian.net/rest/servicedesk/1/servicedesk/request/10071/request-types

 

brings back all the relevant request types for that issue type:

 

avatarType=SD_REQTYPE&avatarId=10508","issueType":10011,"issueTypeIconUrl":"/secure/viewavatar?size=medium&avatarId=10558&avatarType=issuetype","createScreenId":0,"viewScreenId":0,"issueTypeName":"Support","name":"Urgent Out of Hours Voicemail","description":"Out of hours urgent voicemail received","descriptionHtml":"<p>Out of hours urgent voicemail received</p>","helpText":"","helpTextHtml":"","order":0,"usedByEmailSettings":false,"groups":[],"practices":[]},{"id":42,"cvId":5,"portalKey":"ccs","portalId":5,"key":"1ea9d869-77e8-4576-ae55-ae6fdfed451e","icon":10493,"iconUrl"

 

I have underlined and bold the key that is the option ID

 

Phil



 

Callum Carlile Community Leader Sep 23, 2020

@PhilSpo Have you tried using this ID in your workflow condition? In the section you highlighted, I would have thought the request ID is this:

{"id":42,"cvId":5,"portalKey":"ccs","portalId":5,"key":"1ea9d869-77e8-4576-ae55-ae6fdfed451e","icon":10493,"iconUrl"

 I could be wrong though, so apologies if I am!

Hey @Callum Carlile  Yes I tried it and it works.

However I found out that the OptionID is made up of two separate parts concatenated together: portalKey/key 

So from the above example I used 'ccs/1ea9d869-77e8-4576-ae55-ae6fdfed451e'

 

As you can see below, its not very intuitive for yourself or anyone else to know what's going on if they ever need to edit the transition conditions. I will have to make a note of which key is which request type.

image.pngCheers

Phil

Like Valter Jakovlev likes this

Hello

 

For some reason the rest call does not give me the ID-s. No key values in the REST I see. Is there another way to find these?

 

Actually I can not see the portalid either, version differences?

What is 10071 representing in thatt URL?

 

Thank you,

@Valter Jakovlev What API call are you using? You will also need to have the permissions to view the portal and requests if you want to access the information via the API.

If you're looking for another way to find these IDs, there is the manual method I mentioned in the previous answer

Suggest an answer

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

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

196 views 1 6
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