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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

{{now}} function not working inside {{#lookupIssue}} section

Hi to all,


I'm trying to build an automated email notification using Automation for Jira.

The automation workflow starts with a schedule trigger and follows directly to an "LookUp Issue" action and then to the "Send Email" action.


I was aiming to send a notification with the following format:

"Issue abc - X days since creation"


I tried to use the following format:



{{#lookupIssue}} <li> {{key}} : {{created.diff(now).days}} days since creation. </li> {{/}}



I've tried inverting the created.diff(now) to now.diff(created), saving the {{now}} result to a variable and using the variable inside the {{#lookupIssue}} section, but none of this works.


After some debbuging I concluded that I can't access any external smart value that is in the outter scope of {{lookupIssue}} section, or it seems to me it's something around that.


Does anyone have any suggestion on how I can accomplish this? or why the smart value can't be accessed from within the {{#lookupIssues}} scope, am I missing something or doing something wrong?


Thank you in advance

1 answer

1 accepted

1 vote
Answer accepted

Hey there Luiz-F!

Yes that's a known bug. I've llinked the bug report here:

There's no way to workaround this for the moment, unfortunately.


Mark C

Thank you for the fast answer, Mark!

That explains a lot! 

I'll follow through the API route and watch the bug report.


Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,184 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you