I'm inside the content field of Send Email action.
I've tried several ways but not working at all, here is the pseudo code:
{{#project.issue}}{{.}}
{{#if(equals(issue.status.name, "Pending"))}}
{{#issue.subtasks}}{{summary}}{{^last}}<br /> {{/}}{{/}}
{{/}}
{{/}}
Hoped this way could fetch "name list of subtasks of all issues of this project", anyone could help?
Hi @Devon Chan
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
Automation rule triggers, actions, and branches can process at most 100 issues at a time. And so what you describe will not be possible if you have more than 100 issues. Without seeing your rule structure, it is unclear if that is relevant.
Next, the smart value for {{project}} only works with the project-related triggers. It is not an alias to select all issues in a project. Rules access issues using the trigger, actions, and conditions.
I recommend pausing to review these sources to help you understand rule definition and behavior before proceeding:
Kind regards,
Bill
Hi Bill
The automation is this simple.
And what I expected to fetch is:
Issue 1
- Subtask 1
- Subtask 2
Issue 2
- Subtask 3
- Subtask 4
Based on your information, should I assume that it is not possible to fetch the list like this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please re-read what I posted above, including...
Rules get issues from the trigger, actions, and conditions. Your rule has no trigger yet, so you would need to select one for the community to know how to help with your rule.
Rules can process, at most, 100 issues. Does your project have more than 100 issues?
If your rule used JQL to gather the issues, and there were <= 100 issues, you could format a resulting email as you show. However the expression you show in the email action would not do that.
What problem are you trying to solve? That is, "why" do this? Knowing that may help the community to offer suggestions to solve that problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My project have 100+ issues, but only got 30-ish in a single status. So if JQL or smart values can narrow it down to that status, should be fine in theory.
I'm trying to produce Release Notes or reports based on the JIRA tasks and subtasks. I've tried some plugins and also the native export function, but those are all so bulky and not providing this simple list:
Issue 1
- Subtask 1
- Subtask 2
Issue 2
- Subtask 3
- Subtask 4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying.
If your issues are all assigned to a fixVersion you could find them with JQL, using those functions. For example, https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#earliestUnreleasedVersion-- And then use the lookup issues action to gather them for reporting: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues
And / or if you want this message send after the Jira version is Released, the rule could be triggered by that to send the message, iterating over the issues in the version: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Version-created--updated--released
Or, you could use JQL which only returns the issues of your type (or their parent) and that status and then produce that list using the lookup issues action, as noted earlier.
Perhaps try one of those ways if they align to your reporting need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be able to add an IF block before the Send Email step. You can add your filter here and put the Send Email action to the THEN block.
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.