Forums

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

Calculate time left in sprint with smart values

Chris Fortmueller
Contributor
June 30, 2021 edited

I am trying to create an automation rule in a software project that sends an email with some information about the current sprint.

Specifically, I would like to include information about the time left before the end date of the sprint.

 

I have tried the following to do this, according to https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/ and https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/:

 

 

{{now.diff(sprint.endDate).days}}  

{{now.diff(sprint.endDate.jiraDate).days}}

{{now.diff(sprint.endDate.jiraDateTime).days}}

 

However, none of these give a result (see screenshots of automation rule and resulting email). How would I get this to work?

 

2021-06-30 18_22_46-Window.png 2021-06-30 18_25_24-Window.png

2 answers

1 vote
Diane Chalmers
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!
December 13, 2023

FYI - I couldn't get the diff to work, so I changed my approach to using the Advanced compare condition.  I hope this helps someone else, too.

Screenshot 2023-12-13 104022.png

0 votes
Joe R_
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!
April 14, 2022

Also interested in an answer to this question

Suggest an answer

Log in or Sign up to answer