Having some problems validating originalEstimate field in a workflow transition screen.
Using a Validation based on JQL query, which, I believe is provided by the script runner plugin.
The query is simple: "originalEstimate is not EMPTY"
Anybody created validator on a transition screen to require the entry of an Original Estimate?
This won't work if you're trying to do what I think you are, because the issue won't be indexed with the new value until it's committed.
Instead change to a "simple scripted validator", and use the condition:
issue.getOriginalEstimate()
Which is short for
issue.getOriginalEstimate() != null && issue.getOriginalEstimate() != 0
Jamie, Thank you so much :-) I hadn't thought about the indexing!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recognising that this answer was written a while ago. It appears you now don't need to use Script Runner to perform this validation. You can add this validation directly in a Transition Validator. (Working Jira Cloud )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I saw issues that transitioned with 0m as estimation although we had this validator.
Any ideas why it's happening?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.