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: 

Transition JIRA issue after merge (bitbucket)

Farhan Taib
July 11, 2018

Hello Atlassian Community!,

 

I have a request from by boss to automatically transition JIRA issue after merge.

However the condition is that I must get the keyword #resolve or #notresolve and task number in the "Title" section when we Create Pull Request. That keyword indicate if the task should be transition into resolved or no transition.

So my question/help needed:

  1. How to use scriptrunner to get the "Title" value that we filled when Create Pull Request (details on what to import & etc. Maybe a complete script example )
  2. Which feature in scriptruner should I use.
    • A) Script Event Handlers > Custom event handler > Events = PullRequestMergedEvent. or
    • B) Script Merge Checks > Custom merge check.

 

Once above solution found, then at the end of the script I will do .execute() jira api or jira-cli to transition the task.

 

Appreciate for your helps.

Thanks.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events