Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

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

Jira Automation - how to create a rule to block creation issues with the identical summary

Jiri Pik
Contributor
October 21, 2020

I am unable to get the conditions right. 

The trigger is Issue created but am not sure how to get the condition "if the issue's summary is already present in the project" work.

 

1 answer

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 21, 2020

you can't prevent the creation but you could create post-creation automation to close as duplicate. Automation works post-creation not pre-creation.

Jiri Pik
Contributor
October 21, 2020

Thank you for the answer.

 

So the trigger is Issue created?

 

What is the condition? I have tried JQL with Project = XXX and it did not work.

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.
October 21, 2020

Hi @Jiri Pik 

Yes, the trigger would be Issue Created...and due to potential timing issues you might want to add a re-fetch so the item is fully loaded.

Your JQL would check for any issues in your project which have the triggering issue's summary.

Perhaps something like this.

  • Trigger: Issue created
  • Action: re-fetch
  • Action: lookupIssues, with JQL like (note the ~ and the quotation marks)
    • project = myProject AND summary ~ "{{issue.summary}}"
  • Advanced compare condition:
    • First value is {{lookupIssues.size}}
    • Condition is Greater Than
    • Second value is 1
  • Action to close and comment on the duplicate, as @Jack Brickey noted

 

Best regards,

Bill

Like Jiri Pik likes this
Jiri Pik
Contributor
October 21, 2020

@Bill Sheboy : THANK YOU

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events