Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation when someone comment with specific word

Rodriguez_ Jhon Ronald June 6, 2021

I want to auto move the ticket when assignee commented with a word "vendor".

how can i add a condition with like comments contains.

 

jqq.JPG

1 answer

1 accepted

3 votes
Answer accepted
Callum Carlile _Automation Consultants_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 7, 2021

Hi @Rodriguez_ Jhon Ronald 

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!

rule3.pngrule2.pngrule1.png

Dima Astahov June 3, 2024

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

 

J2.jpg

reuben_hollifield July 1, 2024

@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. 

2024-07-01_11-28-09.jpg

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? 

reuben_hollifield July 1, 2024

@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! 

Reg ex.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events