Hi @Lex A My name is Habib I will help you with this request if this answer helps please so accept this answer so others can benefit from this as well.
To create a report for webhook automation using Jira action "Lookup issues" and group the data template by reporter, you can follow these steps:
- Create a new report in Jira and select the "Lookup issues" action.
- Configure the lookup issues action to retrieve the desired set of issues, including sub-tasks, and any necessary fields.
- In the report template, use the "group by" function to group the issues by reporter.
- Within each reporter group, use nested loops to iterate over the tasks and sub-tasks for each reporter.
Here is an example of what the report template might look like:
```
{{#groupBy assignee}}
Reporter: {{assignee.name}}
{{#groupBy parent}}
- Task: {{parent.key}} - {{parent.summary}}
{{#each issues}}
- Subtask: {{key}} - {{summary}}
{{/each}}
{{/groupBy}}
{{/groupBy}}
```
In this example, we first group the issues by assignee, and then within each assignee group, we group the issues by parent (i.e., the parent issue for sub-tasks) to group the sub-tasks under their respective parent tasks.
Within each parent group, we use a loop to iterate over the issues and display the sub-tasks.You can customize this template to include additional fields or formatting as needed.
I hope this helps.
Thank you
Habib
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.