Question about API

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

This widget could not be displayed.

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.

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

The API for Cloud is the same. 

 

This widget could not be displayed.

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/

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

275 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you