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.



Function

<link to function being used>

Use case description

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

Complexity





Issue Event



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 .



Create Issue Link

Next to the Boolean Condition click on Add → Action → Create Issue Link


Issue link type* 

Choose relates to (Relates)


Issue selection*

Choose Issue List Expression


Enter the following Parser Expression*

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








Screencast

This is how the configuration above should look on your screen

No screencast available at the moment



Related examples