Forums

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

how to calculate in automation smart value

Viktoria Soldatova July 15, 2024

 

how to calculate in automation smart value.
trigger when issue closed
set
(days till end of the year)* custField(number)

2 answers

0 votes
Viktoria Soldatova July 31, 2024

problem was in quotations

wrong
665466E1-BD2E-43C2-BF69-C494CCAAA0A8.png

right
DF0EAABB-EDE0-45C7-875F-7ECF2F0117DB.png

0 votes
Kris Dewachter
Community Champion
July 15, 2024

Hi @Viktoria Soldatova

 

First, you can construct the last day of the current year by getting the current year, and adding "-12-31" after it. You can put this in a variable in the automation rule.

 

Screenshot 2024-07-15 at 20.35.41.png

 

Then, you can use this smart value to calculate the difference in days between now, and the end of the year.

{{now().diff(EndCurrentYear.toDate).Days}}

 

Best regards,

Kris

 

Viktoria Soldatova July 15, 2024

thank you @Kris Dewachter 
audit log shows success but the field is empty.

Kris Dewachter
Community Champion
July 15, 2024

Hi @Viktoria Soldatova ,

Can you post what you have created ?

Also, you can add the "Log Action" at various points in the automation rule to display values in the audit log so you can debug what is going wrong.

Screenshot 2024-07-16 at 07.39.16.png

 

Best regards,

Kris

 

Viktoria Soldatova July 16, 2024
Viktoria Soldatova July 16, 2024

Suggest an answer

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

Atlassian Community Events