Regex: Create and configure Regular Expression custom field

Regex custom field is used to validate the values entered into the field - it can be used on the create issue screen and also on the customer portal.

Regex custom field is only a text field.

👀 Learn with an interactive demo

How to configure Regex custom field?

To create a Regex custom field, you need to have global permissions.

  1. Go to the Issues in global settings and to the Custom Fields section.

  2. Create a new custom field and find it in the Advanced section "Regex".

  3. Associate custom fields with the projects and screens you need.

This custom field works with every kind of project.

  1. In the already created custom field, choose Context -> Create, edit, or delete contexts -> Edit custom field config.

  2. Now, let's configure Regex values. Use Templates or enter your pattern. Examples of use are here.

  3. Define an error message that will be displayed when a user enters an incorrect data format. If the field remains empty, a default message will be: "Enter a value that will be validated for the configured regular expression: [regex_pattern]."

  4. At the bottom, there is a testing area where you can run a data validation test. We always recommend running a test.

  5. Save the field.

How to add a Regex custom field to the project?

a) Company-managed project

To add a custom field in a company-managed project, you can do it from the custom field level with Screens and context and then add or remove the associated screen.

You can get the same result by adding a custom field to the list in Screens options on the left menu in Issue global settings.

⚠️ To add a custom field to the company-managed project, you must be a global admin.

b) Team-managed project

In a team-managed project, go to the project settings -> issue types -> Search for field -> and add a custom field where needed.

⚠️ You can do it as project admin.

Regex Templates available

Last updated