The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help to resume paused Jenkins pipeline when JIRA issue transitioned

Anil Kumar Patcha
August 24, 2018

Hi,

We would like to resume paused Jenkins pipeline when JIRA issue is transitioned. Below are the details.

Let's say, we have a JIRA workflow that has below transitions.

To Do -> Dev -> QA -> Stage -> Prod

And Jenkinsfile contains following stages: Dev, QA, Stage and Prod. 

While Jenkins is executing Dev stage, it should create a JIRA issue and then Issue to be transitioned to "Dev" in JIRA.  When it enters to QA stage, it should pause the pipeline and waiting for the JIRA issue to be transitioned to "QA". Once JIRA issue is transitioned to "QA", JIRA should resume paused Jenkins pipeline.

We are able to create JIRA Issue and able to transition it to "Dev". But unable to find a way to resume the pipeline when JIRA issue is transitioned to "QA".

Please help.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Craig Nodwell
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 Champions.
July 4, 2022

Scriptrunner would be an answer here.  I've done this contact me if you would like to see some sample code.