Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19: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.

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

Condition for Automation

eyal_silverstein
Contributor
October 4, 2023

I want to automatically add a comment to any issue that has more than 2 linked issues with the "duplicates" link issue type. I set the trigger as "Issue linked", link type= "duplicate". i am looking for a JQL (condition)  to find the issues that have more than 2 linked issues with the "duplicates" link-type (we are not using any 3rd party search enhancements apps or script runner) 

 

Thanks

2 answers

0 votes
Mark Segall
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 4, 2023

Hi @eyal_silverstein - If I'm understanding your need correctly, you want this rule to trigger as the issue is linked.  In this case, it would look something like this:

  • TRIGGER: Issue Linked (Duplicates)
  • ACTION: Lookup Issues
    • issueDuplicates = {{issue}}
  • CONDITION: Advanced
    • {{lookupIssues.size}}
      Greater Than
      1
eyal_silverstein
Contributor
October 4, 2023

Thank you, Mark, I am not sure I understand the above  logic, but I will give it a try and will let you know if it is doing what I expect it to do

eyal_silverstein
Contributor
October 4, 2023

Just to be clear - here is an example of the ticket I want to apply the automation onScreenshot 2023-10-04 at 20.45.13.pngand the trigger should be the the 3rd issue I have linked to it as a duplicate...

0 votes
Kian Stack Mumo Systems
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 4, 2023

Can you try this?

Screen Shot 2023-10-04 at 9.36.43 AM.png

eyal_silverstein
Contributor
October 4, 2023

Thanks Kian. Actually, i tried exactly that before posting here and it didn't work ( and since the link types confuse me, I have tried with both "duplicates" and "is duplicated by" link types) and it didn't work.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events