Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

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 field where the extracted email address can be stored.

UI Expand
titleSet up the custom field


UI Text Box
typeinfo

If you don't have a single multi line custom field to store the email address, you might want to create one.


UI Steps


UI Step

Head over to Custom Fields in the Jira Administration → Issues.


UI Step

Create a new custom field of type Text field (single multi line).




Configuration

UI Steps


UI Step

Add the Copy excerpted value post function to the desired workflow transition.


UI Step

Source field

Choose Last comment


UI Step

Target field

Choose the previously created single multi line text field

Excerpt configuration

UI Step

Leading delimiter

Choose Regular expression (case sensitive)


UI Step

Expression

Enter the following Expression:

Code Block
Sender\s*:\s*



UI Step

Trailing delimiter

Choose Text (case sensitive)


UI Step

Expression

Leave this one empty


UI Step

Excerpt pattern

Choose Email


UI Step

Multiple pattern matchers

Choose First



The comment to be added should look something like this:

Code Block
Hi,
some text.
Sender: <Email address to be extracted>
More text.



Screenshots


Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" and ancestor = "32211059"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Copy excerpted value

Label



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titletododone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged