Forums

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

Rest API test with demo instance

Calderara Serge
Contributor
November 28, 2018

Dear all,

I need to test jira web service desk in order to implement it in ServiceNow.

For that I have download the trial version of Jira Service Desk, and now I would like to try to get for instance Issue through web service using ARC for test.

What is the exact base url to get the issue, i am confuse on the correct rest/api syntax

Thanks for help

regards

1 answer

1 accepted

0 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.
November 29, 2018

It is whatever you chose for the base-url for the system with /rest/api/latest added to it (then /issue/[key] for a specific issue)

See https://developer.atlassian.com/server/jira/platform/rest-apis/ for a starter

Calderara Serge
Contributor
November 29, 2018

 

So if I understand well, if I need to get a specific issue on ma tria servicedesk instance I need to run the following request :

 https://lieabertest.atlassian.net/rest/api/latest/issue/SD-3

My ServiceRequest SD-3 is existing on default trial instance

but when executing I get error below

"errorMessages": [  "Issue does not exist or you do not have permission to see it."],"errors": {}

Where do I pass the authentication user name and password to the request 
?

Thanks for clarification

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.
November 29, 2018

I don't quite understand the question, but see the doc I pointed to for an explanation of the three parts of the url I said how to build.

Calderara Serge
Contributor
November 29, 2018

So if I understand well, if I need to get a specific issue on ma trial servicedesk instance I need to run the following request :

https://lieabertest.atlassian.net/rest/servicedeskapi/request

 but when executing I get error below

<status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message> </status>

Where do I pass the authentication user name and password to the request 
?

Thanks for clarification

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.
November 29, 2018

That's probably authentication, as you suspect.  Start with a look at https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/  for that.  It covers the "basic" option, which I tend to stay away from apart from getting started with a bit of code, but there's links to the other options in the first paragraph.

Like Calderara Serge likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events