Configure RegEx Custom Field

RegEx custom field allows users to validate a field by matching its content against a specified regular expression.

It is useful for verifying Email address, phone numbers, zip codes & more.

Configuring the Regular Expression (RegEx) Custom Field

  1. Search the Custom field name, Click on the “Three“ dots

    Adding Regex in Config.png

  2. Go to contexts & default value. User will see a page similar to the following example:

    image-20241001-073047.png

     

  3. Click on the Edit custom field config to configure the Regular expression.

  4. Click the Submit button, and the Regular Expression will be added to the configuration.

Testing the RegEx Custom Field

 

  1. Navigate to create an issue and add the required field values.

  2. In the RegEx Field add a value that does not match the regex.

  3. If user try to create the issue, an error message will appear:

 

  1. In the Issue view edit the field with a value that does not match the Regex.

  2. Try to submit, an error message will display.

 

 

Related content

Expressions Repository
Expressions Repository
Read with this
Guidelines for Adding Pattern Mappings
Guidelines for Adding Pattern Mappings
More like this
How to add Rules with Regex pattern?
How to add Rules with Regex pattern?
More like this
Adding Regex Pattern Mappings Guidelines
Adding Regex Pattern Mappings Guidelines
More like this
Getting started - Expressions for Jira
Getting started - Expressions for Jira
More like this
Custom Field Types
Custom Field Types
More like this