I have the following regex, which works, but Jira, on the action only, splits the regex on the comma. How can I fix/prevent this?
{{comment.body.match("([A-Z0-9]{2,10}-\d+)")}}
The error returned is:
Hi @John - This one is interesting. Perhaps try creating a variable and then using the variable to perform the link action?
Great thought. It seems either Jira cannot handle variables inside smart tags, or I have the wrong syntax. Looks like it was a know jira limitation a few years back, not certain if it's been fixed.
Error linking issues
{{comment.body.match({{myRegex}})}}: Issue does not exist or you do not have permission to see it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah that's unfortunate. I wish I were a regex ninja or I'd offer up another way of tackling the problem. Hopefully someone else in the community can help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.