Forums

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

Need a automation rule for if the similar ticket present means it will be create sub task

Gooru
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!
July 10, 2023

I need a rule for that will check some criteria, and if there is a similar ticket, it will create a subtask in that same ticket

2 answers

0 votes
Gooru
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!
July 11, 2023

HI @Mark Segall ,

 

I have already a smiliar ticket but sub task is not created in the same ticket instead of its create a new ticket with sub task.

0 votes
Mark Segall
Community Champion
July 10, 2023

Hi @Gooru - If I understand correctly, you want the rule to look at an issue upon creation and see if there is another issue with the same summary and then create a sub-task on the original issue?  For example:

  • Issue created (ABC-100) with a summary of Test1
  • Automation finds ABC-10 also has summary of Test1
  • Automation adds sub-task to ABC-10 

If I'm correct, the rule start with something like this:

  • TRIGGER: Issue Created
  • ACTION: Lookup Issues
    • summary ~ "\"{{issue.summary}}\""
  • CONDITION: Advanced
    • {{lookupIssues.size}}
      Greater Than
      0

The question would be how would you want to handle the situation if there is more than one duplicate?  Do you want each to get a sub-task, the oldest, ??

Mark Segall
Community Champion
July 11, 2023

To confirm my understanding... when a duplicate is found, your goal is to create a new issue and sub-task?  It would work like this:

  • TRIGGER: Issue Created
  • ACTION: Lookup Issues
    • summary ~ "\"{{issue.summary}}\""
  • CONDITION: Advanced
    • {{lookupIssues.size}}
      Greater Than
      0
  • ACTION: Create Issue
  • BRANCH (Most Recently Created Issue)
    • ACTION: Create Sub-Task

Suggest an answer

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

Atlassian Community Events