We have an automation flow that when an epic is created it created various tasks and subtasks in a specific project. Many of these issues block each other but not in trigger issue order but will always be linked/blocked to the same task/subtask with a specific summary.
Is there a way to do this with smart values or other?
Example
Task: AWS has
Task: Docker
Subtask 2 will always be blocked by subtask 1
Subtask 5 will always be blocked subtask 3
Subtask 4 will always be blocked by subtask 3
It works if you add a linked field to the task or subtaks creation but only for the trigger issue, can you call out a specific subtask created in the sequence by summary as the blocker with a smartvalue?
Hi @FR Jira Dev
Yes, you can link to a specific issue, other than those shown as trigger issue or most recently created. To do so you will need to use the advanced JSON edit functions, as described here:
Also it appears you may be creating those sub-tasks with automation, perhaps in a branch or a single action (create sub-tasks). For either case, there is no guaranteed order of issue creation for either of those methods...so you could not assume one sub-task exists for linking to until the rule completes execution. As a result you may need to perform linking in another rule. Please take a look at your rule flow and use case to see if that is possible.
Best regards,
Bill
Thanks @Bill Sheboy that could work, but to your point since there is no guarantee of creation order and it is not always the next outward issue, per my example sometimes it is a different task or subtask would it then use even with a new rule something more like this in the advanced JSON edit functions? and replace first with, fifth, etc.?
{{issue.issuelinks.first.outwardIssue.key}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see your point, and...
One solution, albeit a long one in a rule, is to create each task and subtask, one by one, saving the keys using the smart value {{createdIssue.key}} (for the last one made) into Created Variables. And then edit the links with advanced JSON.
If you use no branches or only single item branches, the processing will be sequential and allow you to link issues exactly how you want.
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.
Online 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.