Hello!
I have a question about conditions and validators when transitioning issues. I understand the differences between a condition and validators. I also know the different options that exists for conditions but doesn't for validators.
The one thing they have in common though is the "Permission condition/validator" and I'm not sure why I would ever use a validator instead of a condition.
So my questions are:
Thanks in advance for the help!
Conditions are evaluated every time the issue is displayed. It checks to see if it can even present the option to make the transition to the user. As such, you want your conditions to be things that can be checked easily, quickly and with low CPU impact.
Validators are only checked when the transition is executed. In particular, if you use a transition screen, you have the opportunity to make changes to the issue to allow it to pass the validator even if it didn't when you selected the transition. You can also make more complicated validators (using scripting for example) that would otherwise be too CPU intensive. Finally, a validator can pop up an error message to the user when it does not pass, whereas a condition just does not present the option.
Additional features appear along with an additional app. You can look towards free:
set of predefined functions
A tool for writing your own functions in the Groovy language
or paid:
set of predefined functions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If we are talking about permission validators/conditions, you are right, they are interchangeable.
But validators can be used in a variety of cases:
- Checks for resolutions of related tasks
- Checking data in task fields (required fields)
- Plugin validators, for example, that all checklist items have been completed, or that all approvers have agreed on the task.
A lot of options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again, now I understand why to use validators more clearly :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the answer!
When I try to set a validator on one of my transitions, I get these two options:
Where can I set the other options you are talking about?
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.