How do I use REST API?

jmadorma March 8, 2017

I am not a programmer nor a web developer and do not know about REST API.  I simply run our instance of JIRA and need to implement the workaround in https://jira.atlassian.com/browse/JRA-62551,  How do I do this?  Also, I have JIRA version 7.2.6 as a stand alone system.  Is this implementation still valid?  Someone posted at the end of this ticket that this workaround does not exist for version 7.2.4.

2 answers

0 votes
jmadorma March 8, 2017

Thanks for the help!  I had obtained the component id from following the directions in the JIRA ticket I mentioned (your way is easier); however. I am limited to Firefox and IE.  I have pulled up the  URL http://jiraurl/rest/api/2/component/<component_ID>, but I have no idea how to modify it.  

Gaston Valente
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.
March 8, 2017

hi, you can use a similar addon for firefox

https://addons.mozilla.org/es/firefox/addon/restclient/

writing the url on the browser is not going to work, try sending the json data to that url using the firefox addon

jmadorma March 14, 2017

I finally managed to get the extension, but it still does not work.  I think that the problem may be with my version of JIRA as someone posted at the dn of th eticket that this did not work for 7.2.4 and I have 7.2.6.  Thanks for your help!

0 votes
Gaston Valente
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.
March 8, 2017

You can try a chrome extension to consume rest services:

https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop

https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo

with this extension you should be able to perform the update.

you need to send this data

{\"leadUserName\": \"<user_name>\"}

to this url:

http://jiraurl/rest/api/2/component/<component_ID>

There's an easy way to obtain the component id

  1. go to de project admin page, and select Components
  2. Then at the components list, go to edit the component you want to set
  3. looking at the url you can see the id: 

    https://jiraurl/secure/ComponentEdit!default.jspa?componentId=10001

    //10001 in this case

 

 

Suggest an answer

Log in or Sign up to answer