Hi all,
I have a process like this:
When a certain task is created, I add two more subtasks under him. Now i need to send a specific email to some people and i want to somehow display the subtasks key / name etc in this email template, but nothing works for me, i have something like this
Hi all,
A new employee named {{customfield_11037}} will join our department starting {{customfield_11038}}.
There are two subtasks created under his onboarding ticket {{issue.key}} that we need to take care of:
1) Subtasks 1
2) Subtask 2
Thanks
Now how do i replace Subtasks 1 and Subtasks 2 with the actual subtasks that were created? What smart value should i use?
Thanks
This was already answered before and you can reference this article: https://community.atlassian.com/t5/Jira-questions/Subtask-smart-value-in-Jira-Automation/qaq-p/2096643
Hope this helps.
Hi @Vamsi Kandala thanks for your input, for some reasons when i use {{issue.subtasks}} is not displaying anything in my email, it's blank - but i have the subtasks - the automation dosen't throw any error either.
I will keep looking.
@Bill Sheboydo you have any ideea hon this case?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tested it out and it is working fine for me.
Can you send us the screenshot of your ticket with the sub-tasks as well as the contents of the email body in your automation rule?
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post images of your complete rule and the audit log details showing the rule execution. Those may provide context to explain what you are observing. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vamsi Kandala/ @Bill Sheboy I have succeeded in implementing this - the problem was that the email was sent before the subtasks were created, so I have added a "Re-fetch issue," and now it's working.
The only problem I have left is that I have two subtasks under an issue, and when I send the email, i cannot say which subtasks I want to display:
I have something like this:
1) Here need to be the first subtasks + some text description
2) Second subtasks + text description
I have used:
{{issue.subtasks[1].key}}
+ text
This one is working, but for the second subtask i have used:
{{issue.subtasks[1].key}}
{{issue.subtasks[2].key}}
{{issue.subtasks.second.key}}
Nothing is working, i cannot pull the second one - maybe you guys have any ideea how to solve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try this way:
{{#issues}}
Parent issue key {{key}}
Parent issue summary: {{summary}}
Parent issue description: {{description}}
{{#subtasks}}
Subtask key {{key}}
Subtask summary: {{summary}}
Subtask description: {{description}}
{{/}}
{{/}}
Hope this helps.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.