You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
My company has recently started using Jira, predominantly as a fault management system. We are currently using the free plan but only to get a feel for the software before upgrading to either standard/premium.
To give context to the question, the scenario is as follows:
When we decide that an issue requires some form of containment there is a checkbox the kicks off an automation which creates a containment task related to the parent issue. The containment and the parent will share the same custom field which is a label field named Vehicles affected.
When this task is approved we want an automation the creates a subtask, with the documentation and summary of the containment action, for EACH label in the field above.
On top of that (due to the size of the fleet of vehicles) there is a label for full fleet which, if selected needs to create a subtask for every vehicle in that group.
I saw this process implemented at a previous company so I know it is possible, I'm just not sure where to start.
Any help would be greatly appreciated and I have included some screenshots below for context.
Hello @Jamie Salter
Welcome to the Atlassian community.
You can use the Advanced Branching feature to loop over each value in the Vehicles Affected field to create a subtask for each one. Ignore the trigger in my example.
That addresses the values that are specific vehicles, but doesn't address the need for multiple subtasks for the full fleet value. I haven't worked out the details that. But with what I put above I would probably insert a Condition after the start of the branch to say "If AffectedVehicle is not equal to full fleet" to prevent a single subtask from being created for that value.
You might use an If-Else block before the first to check if the field contains full fleet. If it doesn't then you use the For Each loop. If it does contain full fleet then you have to create the multiple subtasks. I haven't yet figured out if you can somehow loop of the list of possible vehicles to do that or if you have to create each subtask individually. (Substitute your "Vehicles Affected" field where I used "Labels".
Hi @Trudy Claspill thanks for the welcome and for the help! That makes sense for how to achieve it for individual vehicles so thanks for that! When those individual sub-tasks are created is there a way to include the "label" that created them in the info, this would help to track tasks against each vehicle via dashboards etc.?
With regards to the full fleet scenario, as I mentioned in my original post, the company I worked at previously did something similar where they had lets say, "All RHD Vehicles" as a label and that then created a subtask for all vehicles within that group. So the answer may lie in grouped labels?
Many thanks again for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is there a way to include the "label" that created them in the info, this would help to track tasks against each vehicle via dashboards etc.?
Yes, the smart value {{AffectedVehicle}} is the Label value. You can use that smart value to set the value of the Labels field in the created issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the answer may lie in grouped labels?
I'm not sure what you mean by "grouped labels".
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.