Forums

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

Jira Automation for GitHub branches for multiple Jira tickets

Joshua Hong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 5, 2024

I'm looking for a solution to be able to handle multiple Jira tickets from the actions of a single GitHub branch.

 

Scenario:


You have issues JIRA-1, JIRA-2, and JIRA-3

You create a GitHub branch JIRA-1. You make changes for JIRA-1 but also find some easy and quick fixes for JIRA-2 so you stick it in there as the work is similar as a separate commit. So you have the GitHub branch JIRA-1 with commit #1 JIRA-1 and commit #2 JIRA-2.

Now a PR is opened for branch JIRA-1 with these changes, and merged into the release branch. Once the GitHub Action completes and deploys the changes, I would like to transition both issues JIRA-1 and JIRA-2 into a new workflow such as "Deployed and Ready for testing".


In the given scenario, I am able to handle 1 ticket very easily through Jira Automation. Is there any way to also transition JIRA-2 along? I've tried setting up an automation to link these issues but haven't found a way to. The only options I have are linking to the "Triggered Issue" or "Latest Created Issue" which would be JIRA-3 in this case.

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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 Leaders.
June 5, 2024

Hi @Joshua Hong -- Welcome to the Atlassian Community!

Without seeing your entire rule for context...

In automation rules, you may type in a smart value for the target issue's key for the link.  That is not obvious from the rule editor as it only lists the options you note in the dropdown list.

Just type in the smart value, and when it appears below the field, select it to use it.

Kind regards,
Bill

Joshua Hong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2024

Thanks Bill, ultimately I'm trying to do something like this:
image.png

 

The goal being
1. When a deployment is successful:

2. For every commit message as part of the deployment
2a. If the commit message has a Jira issue key
2b. Then move the Jira issue to QA Deployed

3. Move the issue in branch name to QA Deployed.

 

The problem for me here is being able to grab the issue key in the commit message. This checks that one exists but I'm unable to understand how to reference it.

Bill Sheboy
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 Leaders.
June 6, 2024

Thanks for that information.

I am not using the dev automation features of rules currently.  From what you show, I believe you will need to extract the key(s) and then use a branch on JQL to access them.

To do this, you will need to use the text functions to produce a list of keys, and then use JQL like this: key IN ( extracted list of keys separated by commas )

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events