Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use the regexp capture group in a new comment in automation

Marcel Stegehuis May 17, 2021

Hello,

I am trying to add a new comment to an issue that is triggered by an autoamation rule.

The rule shoudl be like this::
* If a new comment is added
* And it contains a matcch with a regexp: '\s*revision\s*:\s*(\d*)'
* Create a new comment with this text:
   'https://SVNWEBSERVER/link/commit/rXXXXXX'
Where XXXXXX contains the capture group 

And  would that be possible to also work if there are more capture groups in one comment?

How can I use the capture group in the action to create a new comment?

Regards,

Marcel

AutomationSVN.png

0 answers

Suggest an answer

Log in or Sign up to answer