Versions Compared

Key

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


Page properties
hiddentrue


Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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



Panel

On this page

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


Page properties
hiddentrue


Automated action

Create issue link

Use case description

Automatically link issues based on comments.

Complexity

Status
colourGrey
titleadvanced




UI Text Box
sizemedium
typeinfo

Use case

A handy option in Jira is to use issue keys in comments to reference them whenever needed. But as the amount of comments grow, it can get hard to keep track of all mentioned issues in the comments. Therefore, the following rule checks for issue keys being added to comments and automatically links them to the current issue.





UI Steps

Issue Commented event

UI Step

Excerpt Include
DECADIS:Automation Use Case - Create Rule Step
DECADIS:Automation Use Case - Create Rule Step
nopaneltrue


UI Step

Add a trigger → Issue event → Issue Commented

UI Text Box
typeinfo

No further configuration needed. The automation rule is triggered every time an issue is being transitionedcommented.



Boolean condition

UI Step

Add a ConditionBoolean Condition 


UI Step

Expression*

Use the following Parser Expression:

Code Block
linenumberstrue
findPattern(%{trigger.issue.lastComment},"([A-Z][A-Z0-9]+)-\\d+") !~ null


Expand
titlemore info...


UI Text Box
iconfalse
typeinfo

Boolean expressions are logical constructions that return true or false.

The findPattern() expression parser function extracts the issue key from the last comment.



Create issue link action

UI Step

Next to the Boolean Condition click on Add → Action → Create issue link

UI Steps


UI Step

Issue link type* 

Choose relates to (Relates)


UI Step

Issue selection*

Choose Issue List Expression


UI Step

Use the following Parser Expression*:

Code Block
linenumberstrue
issueKeysToIssueList(toString(findPattern(%{trigger.issue.lastComment},"([A-Z][A-Z0-9]+)-\\d+")))


Expand
titlemore info...


UI Text Box
iconfalse
typeinfo

The findPattern() expression parser function extracts the issue key from the last comment.







UI Step
Excerpt Include
DECADIS:Automation Use Case - Enable Rule
DECADIS:Automation Use Case - Enable Rule
nopaneltrue




Screencast

This is how the configuration above should look on your screen

Multimedia
nametrack-issues-mentioned-in-comments.mp4
width700

Related use cases

Page properties report
firstcolumnUse case
headingsAutomated action, Use case description, Complexity
sortByTitle
cqllabel = "use-case-auto" and label = "create-issue-link" and space = "AUTOMATION"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

...