I am attempting to add multiple validation rules to single custom field to ensure the values are valid. I am using a text box custom field called 'environment' which can have either dev,test or prod.
I am aware that I can use a drop down box but I want this action to be a bit more deliberate i.e: forcing the user to enter the environment value.
Now I can add a validator rule to the transition like this which works:
cfValues['environment'] == 'dev'
However Its valid for 'test' and 'prod' so I tried the following which doesn't seem to work:
cfValues['environment'] == 'dev' or cfValues['environment'] == 'test' or cfValues['environment'] == 'prod'
Also tried adding separate validator rules for the same transition:
cfValues['environment'] == 'dev' cfValues['environment'] == 'test' cfValues['environment'] == 'prod'
Any ideas on how I can ge this to work via validators? or failing with best method forward?
That's not how validators work natively, so you must be using a scripting plugin of some sort.
Could you tell us which one?
(Although, you probably need to join your conditions with OR statements, but I can't tell you how without knowing what you're using for the script or rule engine)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mmm, it's worth knowing exactly what the plugin is - "cfValues" isn't a script runner function, so I don't know what's going on.
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.