how do I access REST from a user???

Hi,

I am new to jira REST api. In particular, I am wanting to use the greenhopper plugin.

I have successfully run the command for 'welcome' from the REST API Browser.

https://jira.atlassian.com/plugins/servlet/restbrowser#/com-pyxis-greenhopper-jira-greenhopper-rest-filter

I run this from my developer login. Also I have used the suggested curl command.

Simply, can someone tell me how I run this from my user account.

1 answer

Here is an example REST API call executed via curl as a logged in user:

curl -D- -u myuser:mypassword -X GET https://jira.atlassian.com/rest/greenhopper/1.0/welcome

For further curl examples with the JIRA REST API, see the following documentation: JIRA REST APIs

Thanks for the reply. I can successfully use that command from my development user. But NOT from my user in the company! I have just found out that we host the jira application here because we have sensitive data. Maybe thats why it is not working???

Also, what version of jira was REST introduced? We are using 4.1.2.

REST should be in 4.1.2 but it doesn't have all the features that JIRA 4.4 and JIRA 5 provide. For those versions you can use the developer toolbox plugin, which provides the API browser. Also, make sure that the REST API is enabled in the administration section at General Configuration.

Thanks again for your response. Cant see anything within the section 'general configuration' directly related to REST, although there is a option indicating that remote API calls - which is turned on.

I guess I can replace my currently used

https://jira.atlassian.com/plugins/servlet/restbrowser#/com-pyxis-greenhopper-jira-greenhopper-rest-filter

with my hostname?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted yesterday in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

40 views 0 5
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