Can I used smart values to do an date.add with a calculated value?

Stephen Costanzo January 29, 2024

Hello,

I know the following: 

  1. {{now.plusDays(30).jiraDate}} <-- so add 30 days and return it as a short date
  2. {{timeoriginalestimate}} <-- returns the number of business seconds 
  3. {{#=}}{{issue.timeoriginalestimate}} * 60{{/}} <<-- returns the result of the division

So my question is can i put that formula in place of the 30 in point 1? It doesn't appear so, so is there a way to do this at all within automation? I didn't know if there was a way to calculate it in a prior step of the automation and then refer to the result. 

Thank you in advance

1 answer

1 vote
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 29, 2024

Hi @Stephen Costanzo -- Welcome to the Atlassian Community!

Have you tried to chain all of that together, perhaps like this:

{{now.plusDays(issue.timeoriginalestimate.multiply(60)).jiraDate}}

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events