I have been using this regex to find reference to other ticket in comments and make a related link:
[A-Z]+-\d+
it works, but it is too general and often causes errors for things that aren't really a ticket descriptor. I changed to this:
[A-Z]{2,8}\b-\d{3,6}\b
which is specific enough to catch things much more finitely.
However, when the automation runs the command to establish the link
{{comment.body.match("{{[A-Z]{2,8}\b-\d{3,6}\b}}")}}
it fails because it is seeing the commas in the regex as delimiters and generates this error:
{{comment.body.match("{{[A-Z]{2: Issue does not exist or you do not have permission to see it., 8}\b-\d{3: Issue does not exist or you do not have permission to see it., 6}\b}}")}}: Issue does not exist or you do not have permission to see it.
Any ideas on how to fix this?