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

Use a lookup table within a lookup issues loop

Matt Caruso August 15, 2024

I'm working on an automation which sends a Slack message with a summary of the results of a Lookup Issues search. 

I'm trying to pull a value from a Lookup table (which converts the issue type name to a Slack icon name) and it doesn't work. It seems to not render the results from the lookup table.

*Completed this week:*
{{#lookupIssues}}
{{icons.get(issueType.name)}} <{{url}}|{{key}}>: {{summary}}
{{/}}

Screenshot 2024-08-15 at 10.34.54 AM.png

Is it possible to call a lookup table from within a lookup issues loop? 

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 15, 2024

Hi @Matt Caruso -- Welcome to the Atlassian Community!

Short answer: no.  Within an iterator, no other data is visible.

 

For your scenario, there are a few workarounds, and the simplest one may be to not use the lookup table.  Assuming your lookup only contains those types, you could do this:

*Completed this week:*
{{#lookupIssues}}
:jira-{{issueType.name.toLowerCase()}}: <{{url}}|{{key}}>: {{summary}}
{{/}}

 

Kind regards,
Bill

Matt Caruso August 15, 2024

Brilliant! That worked perfectly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events