Hello,
I need to request either "Stellungnahme Gruppen" or "Stellungnahme Personen" from users on transition with validators, but also the case when both fields are filled will be fine.
With our current addons and in native JIRA I can't find a way to do it, so perhaps I can get it done in script runner? Anyone willing to help a bit with the code?
Cheers,
Rok
PS: the closest thing I found so far (One field xor another is required) -> https://jamieechlin.atlassian.net/wiki/display/GRV/Validators
Script Runner has moved on a bit - see https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_simple_scripted_condition
You should be able to do it on one line now -
cfValues['MySelect1']
|| cfValues['MySelect2']
would this also work for the "Comment" field. Something like:
cfValues['MyCustomField'] || cfValues['Comment']
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.
I should have said you've found a script which is pretty close already, it should actually still work (if you changed the XOR to OR and possibly made some updates to the calls, as the JIRA APIs have changed) But SR has functions that simplify the need for such code, so I thought you should try them first
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.