Hi,
I'm working a lot with behaviors and one of the more simple behaviors I have configured now seems to not apply the configured validator / condition. I'm rather stumped by this as it isn't a complex script nor is the behavior some oddity.
What I'm trying to achieve is:
The behavior I've configured for this is:
In the workflow itself, only the field 'Release Notes Needed' is set as mandatory field. The others are not configured in any validator:
There is one other behavior for this field, but this only sets the field to read-only (except for some groups):
Unfortunately, this behavior now also apply when I for example 'edit' the issue:
Long story short: am I doing something wrong? Is this a bug in ScriptRunner? Am I missing some crucial configuration?
Hi @Sander Spoelstra , I would suggest using a scripted validatior instead of a Behavior. You can read more about these here: https://docs.adaptavist.com/sr4js/latest/features/workflows/workflow-functions-tutorial/validators-tutorial
Thanks! I know this is possible and have build other scripts before. This does not settle my curiosity though as to why the above doesn´t work? If I limit the behavior to a single workflow action, then it shouldn't apply to edit, or am I missing something about how behaviors work?
Also, a fullblown script seems a bit overkill when a behavior could potentially do the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sander Spoelstra - Did you resolve this? Im having the same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also running into this problem, seems like a bug of some sort, as my field is showing a required for all users regardless of the condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.