It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Has anyone successfully integrated Jenkins and JIRA to auto update issues?

I'd like to have issues updated when a build is made with a fix for an issue in Jira. I have tried this plugin for Jira https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Plugin but the issues aren't being updated (I do have remote API calls on). There isn't much good information out there but I imagine there are many people doing this. I have Jira 5.0 and the Marveloution Hudson integration plugin isn't supporting that version yet.

6 answers

What you may be missing (because I was at first) is that the Jira issue key in the VCS commit message has to be in the first line. So, something like

Some work on this wonderful feature
GHG-87

won't work, but something like

Some work on this wonderful feature, GHG-87

will be discovered by Jenkins and then update the ticket. By the way, this is working for me in an OnDemand instance of Jira. There is a bug filed for it here: https://issues.jenkins-ci.org/browse/JENKINS-13494 but since it is a plug-in issue it probably requires work from the plug-in dev.

Hie 

 

will you please share configuration relatead this please 

im getting pretty much issues on jira status updated build on jenkins

please do share

thanks 

Like Sugumar Raja likes this

Can you post the screenshot for your configuration?

will you please help me on this

0 votes

Hi we integrate the jenkins and jira successfully and configure the auto update issue options too.

Hi, do you can help me. Mi problem is next : https://answers.atlassian.com/questions/168192/jenkins-integrate-with-jira

Thanks for the colaboration

The plugin should be working fine. If you anyone still has trouble, please report issues via the Issues link available at the JIRA Plugin page mentioned above.

HI,

Maybe anyone could help me with this.

I want automatic transition on Jira Issue J-10, depending on the current build status in Jenkins. For example If the build in Jenkins is successful then I want Jira issue to transit in status DEV AUTOTESTING. 

I am using the Flexible Publish Plugin, in the part Post Build Actions

And when I make a build in Jenkins this error is shown. 

Unable to connect to REST service
java.io.FileNotFoundException: https://itssoftvercentar.atlassian.net/rest/api/latest/issue/JP-10.json/search?jqlFinished: FAILURE

Bellow is given a print screen from Jenkins. Is this the right way?

Capture-Jira.PNG

I haven't done this way. But I have tried with the Multi Branch Pipeline. For your case by setting the Issue Pattern as (J-[1-9][0-9]*) should pick the issue ID from the commit and update the issue.

NOTE: You need to have the Jenkins Add-on in JIRA for this to work. One more thing. Add the Jenkins to JIRA after adding the plugin from Settings->System->Application->Jenkins Configurations

Like אלי רשתי likes this

HI NIKOLA,

Do you get any resolution for your issue?

Even I'm also facing the same kind of issue.

can anyone help us ?

Try after removing this part "latest/issue/JP-10".

Still if it doesn't work, there may be issue in your JQL query. Try with simple JQL query to test whether connection is established successfully.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

888 views 7 24
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you