Forums

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

How to set an automation that trigger at a certain Percentage

Filipe Dziedicz February 15, 2023

Im setting up an automation to send emails when an issue passes 90% of its time estimate using the fields{{issue.fields.timetracking.timespent}} and {{issue.fields.timetracking.originalEstimate}} but I'm having a very hard time to set up the 90% part I tried using *0,9 or *0.9 but with no success.

1 answer

1 accepted

1 vote
Answer accepted
Ryan Northfield _Mumo Systems_
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.
February 15, 2023

I believe you need to use the '{{#=}}' math expression, as well as convert the timespent and originalEstimate values to numerical values (such as seconds). I believe the following should work:

{{#=}}{{issue.fields.timetracking.timespentseconds}} >= {{issue.fields.timetracking.originalEstimateSeconds}} * 0.9{{/}}

 this returns a boolean (1 for true, 0 for false). 

See https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/ for more information.

Filipe Dziedicz February 15, 2023

Im sorry by Im having a hard time applying your possible solution, this is what Im currently trying with it but I'm quite sure I'm doing it wrong

imagem_2023-02-15_133856650.png

Ryan Northfield _Mumo Systems_
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.
February 15, 2023

I would insert the entire math expression into the first value, set the condition to equals, then set the second value to 1.

Screen Shot 2023-02-15 at 11.10.52 AM.png

Like Filipe Dziedicz likes this
Filipe Dziedicz February 15, 2023

It worked like a charm, Thank you very much

Like Monique vdB likes this
Ryan Northfield _Mumo Systems_
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.
February 15, 2023

Good!

Suggest an answer

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

Atlassian Community Events