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

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 edited

problem was in quotations

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

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

0 votes
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events