On this page
Use case
Commenting on a Jira ticket is a great way to share important information. In some cases also things like email addresses get shared via a comment. To not lose those information but extract them, the following use case can be used.
We are going to extract an email address from the last comment and save it to a custom field.
Prerequisites
First we need to create a custom where the extracted email address can be stored.
Configuration
Add the Copy excerpted value post function to a workflow transition that fits best for you.
Source field*
Choose Last comment
Target field*
Choose the previously created single line text field
Leading delimiter*
Choose Regular expression (case sensitive)
Expression*
Enter the following Expression:
Sender\s*:\s*
Trailing delimiter
Choose Text (case sensitive)
Expression
Leave this one empty
Excerpt pattern*
Choose Email
Multiple pattern matchers*
Choose First
The comment to be added should look something like this:
Hi, some text. Sender: <Email address to be extracted> More text.
Screenshots
Screencast
Related use cases
Post function JWT feature Workflow function Parser functions Label Extract an email address from the last comment Extract the issue priority from the summary
If you still have questions, feel free to refer to our support team.