Forums

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

Jira automation prevent duplicate branch creation

Dominick Marino November 14, 2023

I have created an automation rule that creates a branch when a Jira task has been moved to in progress.

In the event that the task is moved back to the assignees TODO to fix a change and the assignee moves it back to their In Progress column again how to prevent the rule from trying to create the same branch again?

1 answer

1 accepted

1 vote
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.
November 14, 2023

Hi @Dominick Marino 

There are several ways to do this, depending upon your rule structure.

  1. You could set a field, add a label, etc. to indicate the branch has been created.  And the rule could test for the absence of this indicator before proceeding.
  2. You could use the Send Web Request action to call a REST API function in your source control tool, checking if the branch exists before proceeding.
  3. You could use the JQL operator WAS IN and a condition to check if the issue was previously in the status: https://support.atlassian.com/jira-software-cloud/docs/jql-operators/#WAS-IN

The first approach may be easy to try, and to make adjustments as needed.

Kind regards,
Bill

Dominick Marino November 16, 2023

Ok, thanks. I will give these options a look and see what I can achieve.

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events