how to update jira issues status from jenkins

sandy vanam November 20, 2016

I installed Jenkins and Jira issue updater in Jenkins and enabled Remote API in Jira . what are the plugins i need to enable in jira and how please help me. Thanks in advance

I'am getting the following error :
Unable to connect to REST service
java.io.FileNotFoundException: https://companyname.atlassian.net/rest/api/2/issue/search?jqlFinished:

3 answers

1 accepted

0 votes
Answer accepted
Maksym Karazieiev November 21, 2016

There could be several reasons.

Try to open that url (from the error) in your browser and see if you have file or message that you don't have rights or smth.

Then you can check if your Jenkins server has access to web and particularly Jira's api url. Error says: Unable to connect to REST service

 

sandy vanam November 21, 2016

Hi,

Thanks for your reply..

I tried to open the url. it is showing json output.  from jenkins when build is successful i able to comment the issues in JIRA. but i can't able to change the status of the issues in jira. could u please guide me.. 

Apart form activating remote API in JIRA do i need to install any other plugins/add-on. 

 

Maksym Karazieiev November 21, 2016

You should provide also name of the workflow transition to be executed. Could you check if you entered transition name and not an issue status (if they have different names)

 

Could you attach you POST build configuration screenshot? 

Like Shivani Singh likes this
sandy vanam November 23, 2016

Hi Maksym Karazieiev,

Please find the image attached.

buildjob.png

sandy vanam December 6, 2016

can you suggest me ..

ADS_DevOps_Admin January 17, 2018

I am getting the same error and I validated that the URL is working fine from the browser (getting Json output). Has this issue been resolved for anyone.

-------------------------------------------------------
JIRA Update Results Recorder
-------------------------------------------------------
Unable to connect to REST service
java.io.FileNotFoundException: http://Jira_IP/rest/api/latest/issue/Issue_Name/search?jql



1 vote
Sergii Zavarytskyi September 22, 2017

In version 1.18 do NOT use " or '

example:

project=BLABLABLA and status=BEBEBEBE

Phani Kumar Dadi December 18, 2017

How should we specify status if it is To Do without using " or '. 

0 votes
Rahul Singh June 8, 2017

-------------------------------------------------------
JIRA Update Results Recorder
-------------------------------------------------------
Unable to connect to REST service
java.io.IOException: Server returned HTTP response code: 400 for URL: https://companyname.atlassian.net/rest/api/2/search?jqlFinished:

When I try to open this url in a browser getting json file and there is no updated comments in JIRA issues

Appreciate your inputs

 

Thanks

Ravindu Kumarasiri February 6, 2018

What is your JIRA version? Is the REST API enabled in the JIRA side?

shivaji May 9, 2018

jira version 6.1.7

Raju Adluru October 23, 2019

I am also same error, even though i setup all config looks good, not sure, why i am getting this error.

Anybody can help us on this?

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events