where to find REST service Url in JIRA?

To integrate JIRA and jenkins, it requires JIRA Rest API URL to update relevant issue workflow from Jenkins build.

This URL is required to be configured in Jenkins, under JIRA Issue updated section.

If i configure - rest/api/issue/latest/DP1-1 url getting below error.

unable to connect to REST service.

 

 

2 answers

Hello!

Try this URL:

http://yourjirainstance:9055/rest/api/2/

And if I remember correctly, in Jenkins you then provide it with a JQL query to find the relevant issues to update.

Good luck!

 

Hi Cody,

we have configured the provided url in the jenkins and tried a test build but still we get below error.

Error:

 JIRA Update Build Step ------------------------------------------------------- Unable to connect to REST service java.io.IOException: Server returned HTTP response code: 400 for URL: http://hostname/rest/api/2/search?jqlArchiving artifacts Finished: SUCCESS

Attached the jenkins configuration screenshot for reference

configure.png

In the screenshot I see that you don't have the port explicitly set after the hostname.  Just want to make sure that you have that actually set in your environment.

Also, are you going over SSL?  Be sure to modify your URL to https if you are.

One more thing; what version of JIRA are you on?  If it's an older version, make sure that you have Allow Remote API Calls enabled under Administration -> General Configuration.

 

 

Hi Cody,

we have configured the provided url in the jenkins and tried a test build but still we get below error.

Error:

 JIRA Update Build Step ------------------------------------------------------- Unable to connect to REST service java.io.IOException: Server returned HTTP response code: 400 for URL: http://hostname/rest/api/2/search?jqlArchiving artifacts Finished: SUCCESS

Attached the jenkins configuration screenshot for reference

configure.png

Thanks

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,189 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot