Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Transition JIRA issue after merge (bitbucket)

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events