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

This widget could not be displayed.

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 

This widget could not be displayed.

Can you post the screenshot for your configuration?

will you please help me on this

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

146 views 2 0
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