I do not want people start an issue without a remaining estimate. So the Transistion should perform a validation. But there is no option to validate these field "> 0"? I have with "Field Required Validator" the possibility to check if it is empty. But i need empty OR 0.
At the conditions there is the possibility with "Value Field". But that does not help. Now the button for the transition is missing but nobody knows why.
I need the same check at validation to give some feedback of the field is empty or 0.
Is there a solution?
I know this an old thread but, just in case anyone else has this problem, there is a very manageable solution as long as you have script-runner installed.
The validator ''Script Validator [ScriptRunner]'' lets you validate the contents of a field and (if it returns a falsey value) reject it like a required field validator would for a missing field value.
A simple example script is included below but no guarantees as I'm no wizard:
if (issue.originalEstimate > 0) {
return true
}else {
return false
}
... that should stop folks from setting 'Original Estimate' to 0 or skipping it since the null is treated like a 0 in practice.
however you can help yourself @Tobias by adding a POST function in the workflow to automatically update the field when somebody closes the issue.
the only difference: validators would require people to change the remaining estimate manually befor moving an issue and the post function does it for them in case they don't do it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sven Peper
thank you very much. I'm already doing it.
But now I want the exact opposite. No tickets should be processed that do not have open time. So I want to "force" people to really enter an RE if something else needs to be done on a ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i would need the same validator as @Tobias
i don't want people to close issues with remaining estimate > 0 - it doesn't make sense.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Tobias,
You're always able to write your own plugin or use script runner to implement validator you need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mikhail_Kopylov, unfortunately, I do not really understand your answer. Can you give me more details? Where do I have to look in Jira Cloud in the "Workflow Manager" to fulfill my described requirement?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tobias,
Here's Script Runner for example: https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/cloud/installation
Once you have it you're able to add your own validators, like this: https://scriptrunner.adaptavist.com/4.3.4/jira/recipes/workflow/validators/simple-scripted-validators.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I know there's no such feature out-of-the-box.
You can filter issues by remainingEstimate field, but you want to have a validator based on this field. And there're only permission-based validators in stock JIRA.
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.