PCF - Regular Expression Custom Field
The PCF - Regular Expression Custom Field lets you validate a text custom field against a regular expression. It is useful in verifying information types, such as Social Security Numbers, phone numbers, zip codes, currency, date formats, and others.
Prerequisites:
Basic understanding of regular expression syntax and patterns is necessary.
You have Jira Administrator role and permissions.
You have already created a Power custom field of the PCF - Regular Custom Field type.
Configure the PCF - Regular Expression Custom Field
Locate your PCF - Regular Expression Custom Field on the Custom fields page and click Configure contexts. The configuration section will look like the one illustrated below:
Click Edit Regex. This opens the configuration page for the custom field.
Type the Regular Expression and Error Message for your custom field.
Click the Save. This associates the regular expression with the current custom field.
Test the PCF - Regular Expression Custom Field
After configuring the field, go to an issue and open it for editing.
Edit the PCF - Regular Expression Custom Field with a value that does not match the regex.
If you try to save the changes, this triggers an error message as shown in the example below.
To find more regex examples for your issue, search RegExLib.