I want to auto move the ticket when assignee commented with a word "vendor".
how can i add a condition with like comments contains.
You can use the Advanced Compare condition for the comment part, and you can also add a User condition to check that the user who triggered the event is the Assignee.
For the Comment condition, you can use {{issue.comments.last.body}} as the first value, with vendor as the second value.
You can then use the Transition Issues action to transition the issue to the status you want.
Hope this helps!
it's June 2024, tried it and unfortunately doesn't work. what is the trick to catch that word as a literal ? should I use any brackets/quotes ? I'm trying to catch word testVM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dima Dima @Callum Carlile _Automation Consultants_ I'm having this issue too. I want to transition the issue to another status when a user comments with the word "approved" somewhere in the comment. I can get it to work with the setup below, but only if the comment is just the word "approved", and no other text surrounds it.
If the user comments like, "This is approved." The automation fails and does not meet the second value criteria.
I'm wondering the same as @Dima Astahov , is there a special formatting or way that the Second value should be referenced so it can catch the word anywhere in the comment?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dima Astahov I found some other posts and was able to find a way to make it work. I switched the condition to "Contains regular expression" and then Jira looks for the specific word correctly. Hope this helps!
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.