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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Linking Issues From a List to One Another Edited

Hi,

I am trying to come up with a way to accomplish the following using Automation for Jira:

- Issue is linked to multiple issues. (IE: Issue A links to Issue B, Issue C, and Issue D using as a Ships With Link)

- Issues that were linked to the single issue also link to the other issues as well. (IE: Issue B links to Issue C and Issue D using a Ships With Link. Issue C links to Issue B and Issue D using a Ships With Link. Issue D links to Issue B and Issue C using a Ships With Link.)

Currently I have come up with a way that when a issue is linked with the Ships With Link that a custom field will populate with all of the Issue Keys (the Issue Key of the Trigger Issue as well as all of the Linked Issues). I am then linking the other issues to all of the Issues Keys in the Custom Field.

The problem I am running into now, is that the automation does link the issues as it should, but, it does always throw the error of "You cannot link an issue to itself." (because the Issue Key for the Issue also resides in the list on the Custom Field).

My question is, is there a easier method that anyone has accomplished linking all the issues back to one another? Or, is there a way to ignore the error of "You cannot link an issue to itself." so that I will still receive emails when a rule fails after a success?

Attached are screenshots of the rules and error log

Thanks!

Screenshot_Rule_Part1.pngScreenshot_Rule_Part2.pngScreenshot_Rule_AuditLog.png

2 answers

1 accepted

0 votes
Answer accepted
nmenere Atlassian Team Jan 18, 2021

Hi @Matt Steadman ,

 

I spent an hour trying to come up with a solution around this but it is hard to remove the key from that string and still have it parsed by the link issue component. e.g. using

{{triggerIssue.Shipped With Keys.remove(issue.key)}} 

results in

ABC-123, , ABC-234

If we had a "filter" mechanism on lists it could work, but alas, we don't.

 

Cheers,
Nick 

Thanks for your time Nick.

Hi @Matt Steadman 

Please consider posting an image of your rule and the audit log for a case showing the error.  This will provide some context for people to help out.  Thanks!

I suspect that the solution to your use case will end up being selective about what values you put into that custom field, and so prevent the rule/tree from looping back on the trigger issue.

Best regards,

Bill

Thanks Bill, I have edited the original post to include those screenshots

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Automation

Announcing the Jira automation template library!

Hi all,  After many months of work, I am delighted to announce the launch of the Jira Automation Template Library!  The Template Library is a new website dedicated to all things Jira au...

706 views 12 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you