You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

On this page

Use case

When a comment is added to an issue, mentioning one or multiple issue keys, those issues are linked to the current issue.



 Issue Event

Create a new rule and name it appropriately.

Providing a description will help you to identify what the rule does but this step is optional.


Add a trigger → Issue Event → Issue Commented

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

Boolean Condition

Add a ConditionBoolean Condition 

Expression*

Use the following parser expression:

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

Boolean expressions are logical constructions that return true or false .

Add and configure the Create Issue Link action.

Issue link type*: Choose relates to (Relates)

Issue selection*: Choose Issue List Expression

Parser expression*:

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

Activate the rule by clicking on the Activate rule button 


Screencast

This is how the configuration above should look on your screen

No screencast available at the moment




Related examples



If you still have questions regarding this example or others, feel free to refer to our support team.