Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,463,534
Community Members
 
Community Events
176
Community Groups

{{#Lookupissues}} via email automation not working

Hi there, 

 

I am trying to have an automation generate an email notification when an issue is created by using the following:

''

Hello!

The following ticket has been created:

<table>
<tr>
<th>Issue Key</th>
<th>Summary</th>
<th>Term Date</th>
</tr>

{{#lookupIssues}}

<tr>
<td><a href="{{url}}">{{Issue.key}}</a></td>
<td>{{Issue.summary}}</td>
<td>{{Issue.Effective End Date & Time.shortDateTime}}</td>
</tr>
{{/}}
</table>

Thanks,

''

 

-When i trigger the automation, i get the result below which contains no actual tickets:

''

Hello!

The following ticket has been created:








Issue KeySummaryTerm Date



Thanks,

''

 

-What am i doing wrong?

1 answer

1 vote
Trudy Claspill Community Leader Nov 30, 2022

Hello @Darwin Fernandez 

Try removing the "issue." portion of each smart value.

Hi Trudy! Thanks for your answer. I tried this, but the result stays the same.

Trudy Claspill Community Leader Nov 30, 2022

Can you show us the details of your rule?

Did you confirm that your Lookup Issues action is actually getting any results?

Like Bill Sheboy likes this

Here are the details, i have it as a manual trigger so that i can test it

Trigger 
Manual Trigger

 

Condition
If: Issue matches JQL:

cf[13100] = "custom field name"

 

Action

The code in the action is

<table>
<tr>
<th>Issue Key</th>
<th>Summary</th>
<th>Term Date</th>
</tr>

{{#lookupIssues}}

<tr>
<td><a href="{{url}}">{{Issue.key}}</a></td>
<td>{{Issue.summary}}</td>
<td>{{Issue.Effective End Date & Time.shortDateTime}}</td>
</tr>
{{/}}
</table>


How do i verify that the {{#lookupIssues}} is getting results? Based on what i shared I don't think that it is.

Trudy Claspill Community Leader Nov 30, 2022

When you do not use a manual trigger, what is the trigger for the rule? In your original post you said you are wanting to generate an email when an issue is created. In that case your trigger should be "Issue Created", and there is no need for the trying to put a table into the email because there will be only one issue to include, and no need to use the {{#lookupIssues}} {{/}} encoding.

the original trigger is issue created, but i think i am missing the JQL code after the table. That seems to resolve it.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events