Missed Team ’24? Catch up on announcements here.

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

Due Date and Priority smart values are blank in automation email

Chase Bradshaw January 4, 2021

Hi all,

 

I am trying to figure out what I am doing wrong here. I get the email sent with the right list, summary, etc. But, the stated issue priority and due dates are always blank (even though the issues have data populated for the lookupissues JQL. Any ideas what I am doing wrong with the following syntax?

 

<ul>
{{#lookupIssues}}
<li><a href="{{url}}">{{key}}</a> - {{summary}} - {{issue.priority.name}} - Due - {{issue.duedate.fullDate}} </li>
{{/}}
</ul>

3 answers

1 accepted

0 votes
Answer accepted
Tom Williams
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.
January 5, 2021

Hi @Chase Bradshaw , 

 

@Darryl Lee is correct these are fields aren't included yet. (Annoying!!)

A couple of useful links to monitor; 

List of supported fields; 

https://support.atlassian.com/jira-software-cloud/docs/automation-actions/#Automationactions-Lookupissues 

This post will be updated once custom fields are included; 

https://community.atlassian.com/t5/Automation-articles/Send-a-list-of-issues-in-Slack-with-Jira-automation-s-newest/ba-p/1411819

Chase Bradshaw January 5, 2021

Thank you all! I think I will default to using some of the other available smart values referenced in the links above until more are available. Largely, I think they will communicate similar concepts.

 @Darryl Lee  @Bill Sheboy  @Tom

0 votes
nagisha.vasudev July 13, 2021

Heyy!

I got a way of getting the fields populated.

If you use your browser's inspect tool for an already existing ticket, you would be able to find the key for Priority and Due Date.

Elaborating the steps for ease:

  • Land on to any ticket of your project.
  • Right click on your browser to open the Inspect>Network tool.
  • Refresh the page.
  • You will find a header name in the beginning like : https://xxxx.atlassian.net/rest/graphql/1/  where xxxx will be the name of your organization. This will be called in the beginning as soon as the page is reloaded.
  • Navigate to the Preview section of this particular call.
  • Keep expanding the arrows till you find fields.
  • Within the fields section, look for the keys of Priority and Due Date for your project.
  • And that's it, you are done! Pick up the keys and paste it in the automation rule.
  • You'll see the values assigned to the keys will get populated.

Hope this helps :) 

These steps definitely worked for me!

Attaching a screenshot for your reference.

 

JIRA_FIELDS.jpg

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.
July 13, 2021

Hi @nagisha.vasudev -- Welcome to the Atlassian Community!

Or...you could use the steps in this how-to article for finding smart values: https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

Best regards,
Bill

Celine Penaredondo November 2, 2021

Hi @Bill Sheboy  I tried the link that you have provided and for some reason I get a blank output on my email. 

{{customfield_00000.value}}

--------

UPDATE: It worked. 

I was using a null value that is why there's no output. It should be

{{fields.customfield_0000}}

Like Bill Sheboy likes this
0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 4, 2021

Maybe because you're iterating through a list you can omit the "issue." and just use {{priority.name}} and {{duedate.fullDate}}.

Just an idea - I'm on my phone and can't test. 

Chase Bradshaw January 4, 2021

I tried dropping the leading "issue." from the syntax, but still same result.

Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 4, 2021

Huh. Sounds like it treats priority and duedate like custom fields, in that they're not accessible within the list context:

https://community.atlassian.com/t5/Automation-questions/Custom-fields-in-lookupIssues/qaq-p/1432144

That's unfortunate.

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.
January 5, 2021

Hi @Chase Bradshaw 

Yes, and... to the other responses: here a couple of suggestions that you may want to review and vote for to improve Lookup Issues functions:

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

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

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events