Question about API

Ismail Bennani November 16, 2016

Hello,

I am a developer who just registered on your website for the JIRA service.

I would like to know how I can activate the REST API?

Below is the link I found for the documentation.
https://docs.atlassian.com/jira/REST/cloud/

Do you have any examples for use, how can I connect to the API?
PS: I use php for development.

I have another question, can I list all the users that exists in my account at the same time with the API?

Thank you

Regards,
Ismail Bennani

2 answers

1 vote
stratejos [stratejos.ai] November 17, 2016

To expand on Nic's answer, you need to use your cloud instance URL:

https://[yoursubdomain].atlassian.net/rest/api/2/

For example, at stratejos can access our REST API at our cloud instance with the following:

https://stratejos.atlassian.net/rest/api/2/

Using the tutorials

Try following the instructions here: https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-basic-authentication

Substitute the domain they have (http://kelpie9:8081/) with https://[yoursubdomain].atlassian.net/

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 16, 2016

REST is always active in later JIRA versions - it doesn't actually work properly without it any more.

For the examples and coding, have a look at https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials and look through the rest of the document tree.

Ismail Bennani November 17, 2016

Thank you Nic for your reply.
I use the version that is on the cloud. In the examples I see only localhost. Does the API not work for Jira in cloud?

Thank you

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 17, 2016

The API for Cloud is the same. 

 

Suggest an answer

Log in or Sign up to answer