Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,856
Community Members
 
Community Events
165
Community Groups

#lookup issues not returning any values in an email

Hi community,

 

Using lookup issues to send an email that runs on a schedule.

Capture.PNG

The lookup issues is basically trying to find any tickets that have been blocked for 14 days and not moving so requires chasing or moving. The email HTML text is as follows:


<p>Hi Team,</p>
<p></p>
<p>Blocked External Review Notification: Please review the following Jira ticket/s that have been blocked external for > 14 days. Please deal with them as you see fit.</p>
<p></p>
<p></p>
<p></p>
<table cellspacing="1" cellpadding="5" border="0" bgcolor="#aaaaaa">
<tr bgcolor="#ffffff">
<th>Key</th>
<th>Summary</th>
<th>Description</th>
<th>Assignee</th>
</tr>
{{#lookupissues}}
<tr bgcolor="#ffffff">
<td><a href="{{url}}">{{key}}</a></td>
<td>{{summary}}</td>
<td>{{Description}}</td>
<td>{{Assignee.displayName}}</td>
</tr>
{{/}}
</tbody>
</table>
<p></p>
<p></p>
<p>Kind Regards,</p>
<p>Data Migration</p>

 However the email we get back is just the table and table headers without content. I cannot spot where this is going wrong so any help is appreciated.

 

Dan

2 answers

1 accepted

2 votes
Answer accepted

Hi @daniel tombs 

Smart values are case and spacing-sensitive, and I note a typo for Lookup Issues in your message.  Please try this:

{{#lookupIssues}}

Kind regards,
Bill

Stefan Salzl Community Leader May 24, 2022

wow...even noticing the smallest details 🙌🏼

Awesome work @Bill Sheboy 

Like Bill Sheboy likes this

Hi @Bill Sheboy

 

Great spot!!! I knew about space sensitive stuff but I just could not spot and needed your fresh pair of eyes. Thanks.

 

Dan

Like Bill Sheboy likes this

I am glad to learn that helped.

Automation for Jira is frequently improving, and I hope that at one point the editor adds type-ahead autocomplete for smart values and/or validation on save with better error messaging to help find such things  :^)

Like Stefan Salzl likes this
1 vote
Stefan Salzl Community Leader May 24, 2022

Hi @daniel tombs ,

Just a few points I would suggest for investigation (if they haven‘t been done already:

  • does the jql provide the correct result in the search within the jira project?
  • Does the rule run in the same project that the jql is selecting? Otherwise: Is the rule configured as a multi-project or global rule?
  • For test reasons I often add a „log action“ component that just logs the output (eg. of your lookup issues)

Best
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

1,838 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you