Hello dear community,
I would like to create Script Validator [ScriptRunner]' Validator for "Create" transition that will check the value filled in a custom filed "Other Devices" which is LABEL custom field, when creating a new ticket.
I have used a regular expression but it seems not working:
I have tested using this code:
cfValues["Other Devices"] == "D1|E2|V2H|H2|M2|M2-N|D3|E3|H3|H3-N|M3-W|M3-N|V3M|V3H|V3U|V4M|S4|V4H|Other|P926x"
It didn't work then I tried : cfValues["Other Devices"] == 'D1' and didn't work too.

I would like that my custom field accepts only this values: D1|E2|V2H|H2|M2|M2-N|D3|E3|H3|H3-N|M3-W|M3-N|V3M|V3H|V3U|V4M|S4|V4H|Other|P926x
Please, could you help me on this issue?
Best regards,