Triggering mail to the Assignees with the details like Summary, Key, Fix version, components and along with few custom fields in a table format are created using Jira automation rule as mentioned below. While in triggered mail few values are listing in table format but components, Fix version and custom fields values are not coming into the table but while checking with log function the values are getting fetched from the Jira and displayed in HTML but into the Table it was not listing
<html>
<body>
<table border="1" cellpadding="5">
<tr>
<th>Issue Key</th>
<th>Summary</th>
<th>Components</th>
<th>Fix Version</th>
<th>CCB Date</th>
<th>Created Date</th>
<th>Reporter</th>
<th>Assignee</th>
<th>Issue Origin</th>
</tr>
{{#lookupIssues}}
<tr>
<td>{{key}}</td>
<td>{{summary}}</td>
<td>{{issue.components.name}}</td>
<td>{{issue.fixVersions.name}}</td>
<td>{{issue.customfield_10833.shortDateTime}}</td>
<td>{{created.shortDateTime}}</td>
<td>{{reporter.displayName}}</td>
<td>{{assignee.displayName}}</td>
<td>{{issue.customfield_10912}}</td>
</tr>
{{/}}
</table>
</body>
</html>
Hello @Naveenkumar ,
The lookupIssues scope in Jira Automation only supports a limited set of fields. Unfortunately, multi-value list fields like Components, Fix Versions, and some custom fields are not accessible through lookupIssues, even though they work fine in the rule audit log or standard issue context.
For more information you can refer to "Automation For Jira - Some smart values are showing an empty value"
You can try to switch from lookupIssues to the issues list context.
Try using the bulk issues context ({{#issues}} … {{/}}) instead of lookupIssues.
Thanks @pawarsachin84 for your inputs,
Finally I got the script which supports the requested fields, but here there is one more concern like,If 5 tickets are assigned to single user, it is triggering 5 separate mails for each ticket but my need is if the same user the mail has to be trigger to the user with all the 5 tickets details, Is it possible from the below script?
<html>
<body>
<table border="1" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th>Issue Key</th>
<th>Summary</th>
<th>Component</th>
<th>Fix Version</th>
<th>Assignee</th>
<th>Reporter</th>
<th>Created Date</th>
<th>CCB Date</th>
<th>Issue Origin</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{key}}</td>
<td>{{summary}}</td>
<td>{{issues.components}}</td>
<td>{{fixVersions.name}}</td>
<td>{{assignee.displayName}}</td>
<td>{{reporter.displayName}}</td>
<td>{{created.shortDateTime}}</td>
<td>{{issues.CCB Date}}</td>
<td>{{issues.Issue Origin}}</td>
</tr>
</tbody>
</table>
</body>
</html>
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.