Versions Compared

Key

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

Summary

...

Include Page
SUPPORT:How to use pattern

...

Example

This was created to answer this question.

...

  • 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)

...

TitleProject key is available more easily
titleEasier way to get the project key

...

substitutions for string manipulation
SUPPORT:How to use pattern substitutions for string manipulation