I want to compare two version picker fields with a groovyscript. each version picker fields can have
multiple versions. the validator should check if version(s) entered in picker a are also entered in picker b. so e.g. I have a field for wich version help needs to be updated and this version must be in the field for the already fixed version(s).
How can I do that?
cfValues["Picker A"].containsAll(cfValues["Picker B"])
will be true if the values in A are a superset of those in B. That's for a "simple scripted condition", for a longhand script get the custom field values and use containsAll as above.
note: will throw exception if called on an issue that does not have both these CFs associated with it.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG