Hi There
I am struggling to build an Automation to Transition an issue to "To Do" once all "is Blocked by" linked issues are "Complete".
I read somewhere in the community that issue in (linkedIssues(ACQ-1032) and issueLinkType = "is blocked by") will provide both inbound and outbound "is blocked by" counts, hence why I am getting a count of 3 and not one.
The question is, how do I filter it to count inbound or outbound? It seems af if this should be a common use case. I am sure there must be a workaround.
(linkedIssues(ACQ-1032) and issueLinkType = "is blocked by" and issueLinkType != "blocks") does not work, it returns 0.
Any ideas?
Trigger
Assessed Linked Issue
Automation
Problem
Hi @van den Bergh, Marius, Vodacom (External)
You may distinguish the inbound and outbound using the link types, depending on your rule structure and use of JQL or other actions. To validate these, I recommend first creating JQL outside the rule with an example issue and the issue search; once your JQL works as expected use it in the rule...with modifications for smart values.
I note your rule has a hardcoded value for the issue key in the lookup issues action. Is that what you intended to do?
Kind regards,
Bill
Hi Bill
Yes, the hardcoded value is intentional. I am using it as an example issue. Once the automation is working, it will be changed to a smart value.
As for the JQL outside the automation, I have been trying this many times, I cannot seem to get a working JQL.
The JQL in question is:
issue in linkedIssues(ACQ-1032) and issueLinkType = "is blocked by"
It returns 3 x issues (1031, 1033, 1034). This represents both the "Blocks" and "is blocked by" link types for ACQ-1032. I am expecting only the "is blocked by" link type to be returned.
Any ideas on the JQL edit I need to make so that only the "is blocked by" type is returned? That would be one issue (1031) in this case.
Regards
Marius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(issue in linkedIssues(ACQ-1032) and issueLinkType = "is blocked by") and (issue in linkedIssues(ACQ-1032) and issueLinkType = blocks) returns the exact same results.
(issue in linkedIssues(ACQ-1032) and issueLinkType = "is blocked by" and issueLinkType != blocks) returns nothing.
The target return result is ACQ-1031 only for it is the only link of type "is blocked by" for ACQ-1032
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried using the Related Issues condition, rather than using all of the extra rule steps?
That condition could check for linked issues, of a specific type, and which meet certain criteria, such as "all match specified JQL". And that JQL could check for issues which are completed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And there it is, works perfectly. Much appreciated Bill!
So simple, yet I did not see it. :-(
It still begs the question as to why the above JQL does not work, but I am happiness for now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; I am glad to learn that helped.
For that JQL, I suspect the challenge is still the direction of links. That complexity is abstracted away when using the Related Issues Condition, without the need to specifically check inward vs. outward and type of links.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Today only! Share what you’re the most excited about for Team ‘25 or just dance out the beginning of a new quarter with us.
Comment the postOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.