Script runner validator query

Sanu Soman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2015

Hi All,

Happy new year to all smile

Could you please let me know how I can do a validator check on a custom field on workflow transition? Can I do it by script runner?

If so, how do I write a validator chack? In my case custom field name is "Data field" and it should be in the below format,

[0-9]{4}-[A-Z0-9]{8}

ie,  starting with any four digit and then symbol "-" then 8 characters (combination of number and letters).

Please suggest.

Thanks,
Sanu P Soman 

2 answers

1 accepted

0 votes
Answer accepted
Sanu Soman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 26, 2015
0 votes
Sanu Soman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2015

Any suggestions? cfValues['Data field'] ==~ /\d{4}\-\w{8}/ ??

Suggest an answer

Log in or Sign up to answer