Forums

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

I want to get email notifications when a JIRA issue reaches 80% of the original estimate

Nathan Coffey April 3, 2019

I am sure that I can do this with Scriptrunner but I do not know how to code in Java. 

This is the closest example I can find to what I want. 

http://scriptrunner-docs.connect.adaptavist.com/jiracloud/script-listeners.html#_email_notify_on_priority_change

Can anyone help me write the script so that I get an email when any issue hits 80% time logged? 

 

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Chander Inguva
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.
April 3, 2019

Hey Nathan,

Code:

def timeLogged = issue.getTimeSpent() / 3600000 as double
def orgEstimate = issue.getOriginalEstimate() / 3600000 as double
def percentageLogged = new Double( (timeLogged/ orgEstimate)* 100 )
percentageLogged >= 80

 

Please find below screenshot for reference.

Hope this helps

Screen Shot 2019-04-03 at 1.17.34 PM.png

Nathan Coffey April 4, 2019

Thanks for that help chander. That was exactly what I needed!

Suggest an answer

Log in or Sign up to answer