Versions Compared

Key

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

...

Table plus

Condition Value

Regex Pattern

Example Substitution Variable Use

Explanation

%original_key%

([A-Z]+)-(\d+)

  • Issue project from pattern: %pattern1_1%

  • Issue number from pattern: %pattern1_2%

  • Remove dash from key: %pattern1_1%%pattern1_2% 

This regex has 2 capture groups - characters enclosed by parenthesis.

  • One for the first part of the key - ([A-Z]+)

  • One for the second part of the key - (\d+)

Note that all issues should pass the conditioning as stated, we are just using the condition to generate the replacement variables in this case (smile)

Tip

Easier way to get the project key

%original_project% is a simple way of getting the project key, so the above technique is not needed if this is all you need.