Forums

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

Accessing smart value (now) within lists

john_denver
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 12, 2020

Hi,

I'm setting up an automation rule to run a JQL, and send a Slack message with the results of the query. Within the message, I'd like to calculate the age of each issue, but I'm not able to access 'now' inside the lists by doing the following

{{#issues}}
{{now.diff(created).days}}
{{/}}

I'm able to access 'now' outside of the {{#issues}} block, but it seems to not work inside the block. I'm assuming it's because 'now' is being treated as a property of the current issue instead of a smart value, but I'm not sure how to escape it. Is it not possible to do this with the current featureset?

Thanks!

2 answers

1 vote
JD
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2020

Hi @john_denver , 

Currently the use of math and date functions does not work within lists. I'll pass this on as a feature request to the team.

You can still use the lookup issues actions and add the create date for each issue (but that date isn't in a very readable format).

{{#lookupIssues}}
{{key}} - {{created}}
{{/}}

Thanks,
John

0 votes
gerretisn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2020

Found this page while googling for the exact same question. Does anybody know?

Suggest an answer

Log in or Sign up to answer