Hi, good afternoon, how are you all doing?
I have a doubt and would like to know from you if it would be possible.
I created an automation that runs on the last day of each month.
She will create an epic, with some tasks (ten tasks).
After doing all the automation, I would like an email to be forwarded with some information.
My question is, how can I inform the amount of tasks that are inside the epic.
The idea would be to show (in numbers) the amount of tasks that are inside the epic.
Hello @Rodrigo Xavier
You can use the Lookup Issues action in an automation rule to look up issues based on a JQL query.
You can access the count of issues in the results using the smart value {{lookupIssues.size}}
If you need additional help with implementing this, please share with us the details of your automation rule.
Hi @Trudy Claspill. Thanks so much for the reply.
I already used {{#lookupIssues}} and other automation.
It stayed that way;
<p> Email text </p>
{{#lookupIssues}}
<uI style="list-style-type:circle">
<li><strong> Key: {{issue.key}}</strong><a href="{{url}}">{{key}} </a></li>
<li><strong> Summary: </strong>{{summary}}</li>
<li><strong> Status: </strong>{{status.name}}</li>
<li><strong> Component: </strong>{{components.name}}</li>
<li><strong> Epic: </strong>{{epic}}</li>
<li><strong> Assignee: </strong>{{assignee.displayName}}</li>
<Ii><strong> Updated: </strong>{{updated}}</Ii>
Result
• Key: TEST-1495
• Summary: Just a test
• Status: Done
• Component: Test
• Epic: PAI-797
• Assignee: Jira Automation
• Updated: 2023-08-07T21:57:28.2+0000
</uI>
{{/}}
I've also used it in the following way.
{{#lookupIssues}}
* {{key}}
{{/}}
Result
TEST-1452
TEST-1456
TEST-1457
...
I tried using {{lookupIssues.size}} as mentioned but it didn't work.
I would like if possible to show the numerical amount of issues.
Example.
Email test you have XX issues in your name.
I don't know if my doubt was clear, let me know and please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you use this format in the email
{{#lookupIssues}}
(put text and issue field references here)
{{/}}
...your are indicating that for each issue in the lookupIssues result set you want to print the text and fields you have specified in the middle section.
If you want to print the count of issues in the results set the outside of the above format you need to include {{lookupIssues.size}}.
Email test you have {{lookupIssues.size}} issues in your name.
Here is a list of those issues:
{{#lookupIssues}}
(put text and issue field references here)
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow Www Very good my friend, you are putting the wrong syntax. It worked out very well.
Result
Email test you have 38 issues in your name.
Here is a list of those issues:
• Key: LPBRI-1495
• Summary: [SUPPLEMENT] Generic Users
• Status: Done
• Key: LPBRI-1494
• Summary: [COMPLEMENT] Change LPBRCM-670
• Status: Done
• Key: LPBRI-801
• Summary: [AUDIT] Evidence of assessments of segregation of functions of granted accesses, for users selected in the sample.
• Status: Done
Thank you very much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
If your questions have been satisfactorily addressed, please consider marking the Answer as Accepted.
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.