Forums

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

Calculate two smart values containing dates

Tomas Slavkovsky
Contributor
May 17, 2023

I am trying to create an automation for how long an issue was in progress. I have two dates now stored as a variable. How I can now show the difference without saving those dates. Alternatively, how I can store those values in the issue without making it visible to other users?

I tried: 

1. Jira smart values - date and time / https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

{{[date1].diff([date2]).[unit]}}

 

2. Jira smart values - math expressions

{{#=}}......{{/}}

 

Any hint?

From log you can see, I am getting the correct date values.

Screenshot 2023-05-17 at 14.53.06.png

1 answer

0 votes
Alexey Matveev
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 Champions.
June 25, 2018

Suggest an answer

Log in or Sign up to answer