I'm trying to set up an automatic transition for issues that get updated and have Remaining Estimates set to 0.
I'm using Script Runner and have tried adapting the script from this: https://answers.atlassian.com/questions/839/avoid-that-an-issue-gets-resolved-if-time-remaining-is-left-on-issue
I have the script set up as a Post Function and have verified that it does work when I set it to transition based on the condition where reporter == current user, but I can't get it to work based on values from any fields.
For the Condition, I have tried both
issue.estimate == 0
and
issue.timeestimate == 0
and nothing happens. But when I try
currentUser == issue.reporter
just to test, it works, so I know I at least have everything else set up.
Any help is greatly appreciated.
Thanks,
Pat