The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

i want servicedesk id for rest api,from where i found ?

lucky nath
Contributor
July 8, 2023

I am working on jira service management, and jira cloud rest api,iam creating article on knowledgebase, and i want get that article to view in postman,for that i need servicedeskId,

like this: GET/rest/servicedeskapi/servicedesk/{serviceDeskId}/knowledgebase/article,

and this is your article link:

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/#api-rest-servicedeskapi-servicedesk-servicedeskid-knowledgebase-article-get

but from where i found service desk id ? .any article available? for step by step process. 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Evgenii
Community Champion
July 8, 2023

Hi, @lucky nath 

Welcome to Atlassian Community

You can use next method from REST API, which will return all servicedesks and assigned to them portal IDs

GET: https://your_domain.atlassian.net/rest/servicedeskapi/servicedesk

More information can be found here:

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

Example, what you will receive (from my test instance):

image.png

lucky nath
Contributor
July 8, 2023

@Evgenii ,thanks,for your answer,i am follow that link,and use servicedesk endpoint to get my desire output,

GET https://your-domain.atlassian.net/rest/servicedeskapi/servicedesk

which give me reponse in postman like this:

jira-service-deskid.png

in my postman response,i get id 1 and 2.

in above image you can see an id,is it project id like serial number or it is service desk id ?,and i am using classic jira. Thanks.

Evgenii
Community Champion
July 8, 2023

Yes, id 1 and 2 are ok. It's portal id's. In my instance response is the same.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events