Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events