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?
Or should something completely different be done?
Any help would be much appreciated (pointers to any kind of clear and systematic documentation, etc.)!
Solved! Go to Solution.
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)
This works much better than the built-in filter indeed. Thanks!
Side note: issueLinkType IS EMPTY is not accepted by my version and more generally doesn't seem to really work (https://jira.atlassian.com/browse/JRACLOUD-72795, https://community.atlassian.com/t5/Jira-questions/JQL-query-where-tickets-DO-NOT-match-an-issueLinkType-in-Jira/qaq-p/1228220).