Hi,
I would like a way preferable via automation for jira that anytime a ticket is mentioned in JIRA it would automatically link it in JIRA.
is it possible?
So, I was able to make this work. A few considerations.
Screenshot attached.
Hi @Neetu Verma
Can I confirm what you mean by link in Jira?
When you mention a specific issue key (eg. ABC-123) in Jira, it should already create a link to that ticket.
If that isn't working, let us know - along with the hosting type for your instance (eg. Cloud, Data Center, etc).
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response, but yes when I mention a ticket in JIRA comments it actually doesn't link two tickets automatically.
Hosting: Cloud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Neetu Verma
So you mean when an issue key is commented, you want it to automatically create an issue link between the key commented and the key the comment is applied to?
That could be quite difficult; what is the use case for this?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, yes that is exactly what I would want. We have team members who are commenting on tickets especially if an issue is caused by a fix on another ticket.
We have to always manually link them, and I was hoping to find a way that when developers add a comment and enter a ticket number it would automatically create a link for these two tickets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Neetu Verma
Turns out it's not actually that difficult after all!
To do this:
{{comment.body.match(“([A-Z]+-\d)”)}}
This will locate each mentioned issue key in a comment and link it to the issue it was commented on.
You can specify a specific project if you prefer - so your smart value would be: {{comment.body.match(“(ABC-\d)”)}} where ABC is your project key.
In case it's not clear, the slash before the d is this character - /.
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have been trying this but it doesn't seem to be working for me. Audit Log just keeps failing.
Failed to get value for comment.body.match(“([A-Z]+-\d)”): {{comment.body.match(“([A-Z]+-\d)”)}}
I tried:
{{comment.body.match(“(\w+-\d)”)}} and that works only if the project is in capitals, not sure why your verison didnt work.
but the same concept wont work for the description field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ste Wright , @Amanda Ward I tried to used any of the options mentioned above and I get the following error:
Error rendering smart-values when executing this rule: Failed to get value for comment.body.match(“(\w+-\d)”): {{comment.body.match(“(\w+-\d)”)}}
Here is a screenshot of my automation rule.
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.