I'm trying to add an automation that will:
- Look up a certain set of issues.
- Group that set by component and send one notification for each component.
That automation currently looks like this:
- Lookup Issues: using "<my query>".
- If: `{{lookupIssues.size}} > 0`.
- Advanced branch: For each value in `{{lookupIssues.components.name.distinct}}` (variable named `distinctComponent`):
- Lookup Issues: using "<my query> AND component == {{distinctComponent}}".
- Send Slack notification: for that component.
This breaks if an issue is returned by my query that has more than one component value (component is required for this project so it's guaranteed we will have at least one value).
How do I get the distinct set of individual component values across the entire set of issues, instead of the distinct combinations of component values across the entire set of issues?