Extract Content out of Description and Summary with Regex in Jira Cloud Automation

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

Learn how to create an Automation that extracts information from the description or summary and automatically dumps it into a specific field.

Solution

Before you begin

For this, we will be assisted by REGEX.

To capture…

Pattern (example)

An email address

[\w.+-]+@[\w-]+\.[\w.-]+

A number / ID

\d+

Text after a label (e.g. 'Order:')

Order:\s*(\S+)

REGEX is pattern-based, so you will need a couple of prerequisites:

Example:

An email address is added to the text “Email: mail@testing.com“

"Description: This is a sample of how the REGEX text extraction works! Email: mail@testing.com"

In the above text, the likely outcome would be to extract the email so it can be used to fill the Reporter field, create a new user account, or take a multitude of other actions, which can be helpful to have.

In the above example, “Email:“ would be my recognizable pattern, and “email“ will be the text to extract.

As long as we have these elements, the rest of the Description or Summary can be whatever we want, since we know what to look for.

The other two recommendations to follow are the following:

  • If used in SUMMARY, the text to extract must appear at the end of the field.

  • If used in DESCRIPTION, the text to extract must be on a separate line and must always contain a line break.

The recommendation would be to use the Template as shown below:

Summary Example

"Testing REGEX Email: mail@testing.com <- Content to be extracted at the end"

Description Example

"Description: This is a sample of how the REGEX text extraction works! <- ISSUE DESCRIPTION Email: mail@testing.com <- EXTRACTABLE CONTENT FOLLOWED BY A LINE BREAK Thanks! <- REST OF THE DESCRIPTION."

NOTE: These recommendations are intended to introduce the fewest points of error into this process as possible.

Creating an Automation

Go to → Project Settings → Automation → Create Rule.

The structure will be the following:

Trigger: Issue Created is the most common trigger for this example; however, if you need to make edits because of any other trigger, you can do so as well.

Conditions: Can be any that you feel necessary.

Actions: These can be any that you feel necessary.

  • The only Action required will be the one we set the extracted content to.

Example

Jira automation rule setup. When: Issue created. Then: Edit issue fields. The Reporter field is set with the smart value {{issue.description.match("\Email: (([S+]).)")}}.

The REGEX to use in this example is :

{{issue.description.match(".*Email: (\S+).*")}}

{{issue.summary.match(".*Email: (\S+).*")}}

Breaking this down:

The part ".*Email: (\S+).*" will be our REGEX, which translates to:

. matches any character (except for line terminators) * matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy) Email: matches the characters Email: literally (case sensitive) 1st Capturing Group (\S+) \S matches any non-whitespace character (equivalent to [^\r\n\t\f\v ]) + matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy) . matches any character (except for line terminators) * matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

The rest of the line is the Smart Value, which allows us to use REGEX in our Automation.

For more information about Smart Values, you can review this document:

A couple of notes:

  • Be aware of spaces! If you introduce spaces into the REGEX and they are not present in the template, this process can fail.

  • If you are modifying the REGEX, you can use tools such as https://regex101.com/ to verify your changes against your text.

Confirm if the regex captured the value

Run the rule on a test work item, then check that the destination field contains the expected value. If the field is empty, verify that the smart value references the correct regex capture group and that the destination field is available on the work item screen.

Updated on July 6, 2026

Still need help?

The Atlassian Community is here for you.