Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Values {{issue.components.name}} - return empty value

Beatrice.Dutoit April 6, 2021

Dear Community,
It is probably a stupide question, but I am trying to set up an automatic rule that will trigger a weekly email with a list of tickets which should include:

  •  Issue key= {{key}} = OK
  • Components= {{components.name}} = KO 
  • Status= {{status.name}} = OK
  • Update date= {{updated.mediumDate}} = OK
  • Summary = {{summary}} 

The rule itself, is working fine, but I am not receiving any value for the [components field].

I tried different typo:

issue.components.first.name
components.first.name
components
component
component.name
components.name 

but, still not working  ;( Jira-7.JPG

Thanks for your help!

Oh the HTML

<table style="width:90%;border:1px solid black;">
<tr style="height:30px;">
<th style="border:1px solid black;vertical-align:bottom;width:80px;">Issue Key</th>
<th style="border:1px solid black;vertical-align:bottom;width:80px;">Components</th>
<th style="border:1px solid black;vertical-align:bottom;width:80px;">Status</th>
<th style="border:1px solid black;vertical-align:bottom;width:80px;">UpdatedDate</th>
<th style="border:1px solid black;vertical-align:bottom;width:300px;">Summary</th>
</tr>
{{#lookupIssues}}
<tr>
<td style="border:1px solid black;vertical-align:top;width:80px;"><a href={{url}}> {{key}}</a></td>
<td style="border:1px solid black;vertical-align:top;width:80px;"> {{components.name}}</td>
<td style="border:1px solid black;vertical-align:top;width:80px;"> {{status.name}}</td>
<td style="border:1px solid black;vertical-align:top;width:80px;"> {{updated.mediumDate}}</td>
<td style="border:1px solid black;vertical-align:top;width:300px;"> {{summary}}</td>
</tr>
{{/}}
</table>

2 answers

1 vote
John Funk
Community Champion
April 6, 2021

Hi Beatrice,

Maybe try {{issue.components}}

Beatrice.Dutoit April 6, 2021

Sadly it's not working... I start to think that it might be related to this specific smart value? as I followed recommendations from this page
-https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

John Funk
Community Champion
April 6, 2021

According to that, then this one should work:

{{issue.components.name}}

Beatrice.Dutoit April 6, 2021

Indeed, but it's not working! 

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.
April 6, 2021

Hi @Beatrice_Dutoit 

Unfortunately, Lookup Issues does not support the components field yet:

https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvalues-general-{{lookupIssues}}

Here is the suggestion to add more fields to Lookup Issues:

https://jira.atlassian.com/browse/JRACLOUD-75018

Best regards,

Bill

Like # people like this
John Funk
Community Champion
April 6, 2021

Ah, I actually missed the lookupIssues code in her example. Thanks for pointing that out! 

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.
April 6, 2021

One more thing to try, @Beatrice_Dutoit 

If you just need a weekly email / report, you could create a filter, add the fields you need, save it, and subscribe to have it send you an email on a schedule.  Please look here for more information:

https://support.atlassian.com/jira-software-cloud/docs/save-your-search-as-a-filter/

https://support.atlassian.com/jira-software-cloud/docs/work-with-search-results/

Like # people like this
Beatrice.Dutoit April 7, 2021

@Bill Sheboy 
Thanks a lot for your feedback.

It's exactly what I will be doing then!
But happy to know that is not related to a wrong implementation :)

Like # people like this
0 votes
Boris Berenberg - Atlas Authority
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.
April 6, 2021

If you're ok using something other than native Automation, our app, Notification Assistant for Jira would let you set up scheduled notifications. We released the first version of our Template functionality today, and plan to release further end user ability to customize it in 2-4 weeks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events