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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Help with automation condition


Please see this screenshot of an automation I'm creating.

I only want to fire the action if the linked issues belongs to a specific project. How can I do that condition?

In other words, what the automation should do is: if any issue transitions to status X (issues from all projects), add a comment to linked issues if these linked issues belongs to project Y.

Thanks a lot!


4 answers

1 accepted


This should be working as long as your Linked Issues are corresponding to the correct linking type.

Maybe I am misunderstanding, are you trying to specifically filter the linked issues to a specific project, or just make sure that he projects link?

Is this what you're looking to accomplish?

image.pngWe created a linked issue from Service Desk into Jira and when the Jira issue was transitioned to done it created a comment on the Service Desk project.



Hi @Gui Ávila 

Is this a global (or multiple project) rule?  If so, I suspect you can just use the branch over the linked issues to check them and add the comment.

Best regards,


Hi @Gui Ávila 

You noted the commenting works and is made on every issue instead of just some of them. 

If the link types by project are different you could filter on those.  If not...Your next approach, although complicated, is to only add the comment for the linked issues of interest by parsing them out the links as strings, and then using JQL:

  • Remove the original branch on links, as it is not helping in this scenario
  • Capture the links into created variables, such as {{myLinks}}.  Depending on how you linked, these will be {{issue.issuelinks.inwardIssue}} and/or {{issue.issuelinks.outwardIssue}} 
  • Use string functions to extract the target project links, perhaps using RegEx
  • With this new comma-separated values (CSV) list of links, you use a new branch on JQL: key IN ( {{myLinks}} )
  • Now you may iterate over the desired issues to add the comments
Like Stephan Shere likes this

Hello @Stephan Shere and @Bill Sheboy . Thanks for your help!

The automation already works fine, but the comment is made on every linked issues. What I want to do is to make the comment only if the linked issue belongs to a specific project.

I tried to create a condition, but if I choose "issue belongs to project X", Jira understand that is the issue that triggers the rule and not the linked issues.


@Stephan Shere @Bill Sheboy , problem solved. It worked now. Thanks!

Great to hear! Do you have a solution that you can share?

@Stephan Shere Only a simple filter:

I thought that would filter the trigger issue and not the linked issues.

But it worked fine :)

Like Stephan Shere likes this

Not sure how I missed that!

Now I know for the future, so I'm very appreciative of the knowledge.

Like Gui Ávila likes this

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,120 views 8 28
Join discussion

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