We work in a multi-team environment with lots of interdependencies. I'd like to have a field on a story/bug that has an up-to-date list of everyone who has a subtask remaining on the main story/bug ticket.
Example
Subtask PROJ-1022 assigned to Sue which is in "TO DO" Status
Assuming we had the field "Notes" on the Story, I'd like the Notes string to be "Bob, Sue"
This excludes:
The trigger events are anytime a subtask class issue is created, updated or assigned, to cause a rebuild of the list on the parent story/bug.
I've had success with getting the string built with a branch to the parent and then a field update action with:
{{issue.subtasks.assignee.emailAddress.substringBefore("@").join(", ")}}
But I've had no success after many tries at not including the Done items or deduping. Any help or pointers would be appreciated.
Current setup:
Hi @Tom
Removing the duplicates may be done using the distinct list function:
Your current rule is triggered on a change to a Subtask, and so the lookup issues action should only return Subtasks which are siblings to the trigger issue, and not Done.
Once you have made that adjustment, please add the distinct before you join(", ") the values together.
Kind regards,
Bill
Thanks for that fast reply. Holiday weekend over and I'm back to it this afternoon.
!!The distinct worked like a charm, thank you for that!
The part to eliminate the Done subtasks from the compiled string isn't quite making sese to me. Sorry for being dense.
When you say "Your current rule is triggered on a change to a Subtask, and so the lookup issues action should only return Subtasks which are siblings to the trigger issue, and not Done."
My lookup is "issueFunction in subtasksOf("key={{issue.key}}") AND NOT Status = Done"
I'm just not understanding what you suggest changing as this is not working for me and still results in a string with the names from all subtasks including the done ones.
Edit to add:
I've tried that query several different ways and while in Jira search it returns the correct set of subtasks, when used in automation, any filtering seems ignored other than the subtasksOf(). Put in filters by subtask type, status, etc. Put them before and after the subtasksOf(). Every time, everything but the subtasksOf() is ignored. Weird stuff.
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.