Forums

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

how to calculate

Viktoria Soldatova August 19, 2024

 

How can I make this formula in Automation
- value change make

=(Days left this year)*Field1/Days past this year

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.
August 19, 2024

Hi @Viktoria Soldatova 

That should be possible using the date / time and math functions:

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

Perhaps start by using the startOfMonth() and endOfMonth() and perform diff() operations relative to {{now}}

I recommend using a test rule to write your calculations to the audit log to confirm they work as needed.

Kind regards,
Bill

Viktoria Soldatova August 19, 2024

it does not work

Viktoria Soldatova August 19, 2024

you can write the formula if you know how. thanks

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.
August 19, 2024

For a question like this, context is important.  So the community can help, please provide:

  • explain what is not working as you expected
  • an image of your complete automation rule in one image
  • an image of the rule action(s) where you are performing the calculation
  • an image of the audit log details showing the rule execution

 

Like Walter Buggenhout likes this

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