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

How to find serviceDeskId and requestTypeId

Rahsal P A
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2021

Hi team,

I am really new to Jira and using Jira Service Management. 

I am trying to create an incident from ServiceNow using REST API. For that, I have used the below body.

{
"serviceDeskId": "3",
"requestTypeId": "3",
"requestFieldValues": {
"summary": "Request raised via service REST API",
"description": "test."
}
}

 

I am not sure what put in serviceDeskId and requestTypeId. Where do I can find those IDs.

Thanks in advance.

1 answer

1 accepted

10 votes
Answer accepted
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.
October 20, 2021

The quick and easy way to do it is go visit the portal you want to use and look at the urls.

For example, if I go to a portal, and click on a request to raise, I land on a url like:

https://somewhere.atlassian.net/servicedesk/customer/portal/10/group/229/create/664

The numbers in there are:

  • 10:  The portal / servicedesk
  • 229: The group the request is coming in by (only used by navigation, you don't care about that in REST)
  • 664: The id of the request type I've clicked on

So, you would need:

{
"serviceDeskId": "10",
"requestTypeId": "664",

You can get these ids by looking at the project/portal admin as well, but this "start a request" url is quicker

Rahsal P A
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2021

Thank you so much, Nic. I got the id from URLs as you mentioned.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events