Hey Guys
I'm trying to do a calculation in jira that only includes business hours, but I can't seem to crack the nut. I'm right now using the "JMCF time in status" functionality with a field that just states the raw time. Then i have another field where i'm trying to use a groovy script to show <one thing> if time is <= 8 working hours else <another thing> is that at all possible or should I take another approach?
The script that i'm currently using is below - it works fine except that it takes raw hours and not working hours.
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def field = customFieldManager.getCustomFieldObject(00001);
def value = issue.getCustomFieldValue(field);
if (value < 28800) return "one thing";
else return "another thing";
Hope you can help me crack the nut - thanks