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

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

Run rule only if issue doesn't have linked issues? Edited

I need to use Jira Automation and run a rule, but only on issues that do not yet have "depends on" links.

I tried various combinations of the settings for Condition, and looked for some systematic documentation on this, to no avail.

Can the following (which doesn't work) be tweaked so as to only run the rules on issues that do not yet have any "depends on" link?

a.png

Or should something completely different be done?

Any help would be much appreciated (pointers to any kind of clear and systematic documentation, etc.)!

1 answer

Hi @lebigot 

You note that the condition "doesn't work".  What exactly is happening?  And, for a case where you expect the rule to work, please post an image of the audit log details.  Thanks!

Best regards,

Bill

Thanks for the followup.

The condition works as if it didn't exist.

The Audit indeed reads:

Related issue condition:

The following issues passed:

DND-123

The goal is that issues with linked issues should instead block (so that I don't create new linked issues).

I have had limited success for such tests with the related issues condition unless I explicitly stated the JQL.  

So you could try that with related issues, or use LookupIssues with JQL and check the return count greater than zero.  The JQL would be something like:

project = myProject
AND (issueLinkType NOT IN ("depends on")
OR issueLinkType IS EMPTY)
Like lebigot likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

95 views 1 10
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