I'm new to Jira and I'm trying to figure out how to make sure time have been logged at least 1 minute. So, if Time Spent = "0" OR NULL it should pop-up a message and prohibit to close the issue. I'm not a programmer :/
Jira Server 7.3.4 with Script Runner
Hey there Francis,
I think I can help you out with this!
Follow these steps:
def timeSpent = issue.getTimeSpent() timeSpent>=60000 && timeSpent != null
and the Error Message "Error: There has been no time spent on this issue!" But leave the Field box blank.
If I'm following your question correctly, this should do the trick.
Let me know how it goes!
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot