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

Comment automation using regex

sueli lao June 16, 2022

Hi there!

I'm trying to set an automation that every time user comments with a number it'll trigger another comment on the ticket.

Captura de Tela 2022-06-16 às 12.39.49.png


Since I use Atlassian Assist, comments from users that are not part of the project will be posted as Atlassian Assist with: [On behalf of @User]

Captura de Tela 2022-06-16 às 12.41.15.png

That's why I'm using {{comment.body}} exactly matches regex ^(\[.*?]\s?)?1$ instead of {{comment.body}} equals 1 

 

But something is off with this regex because is not working, does anyone knows what is wrong?

1 answer

1 accepted

0 votes
Answer accepted
Marini Marini
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2022

Hi @sueli lao 

Can you try the following smart value in the "First value" field?

{{issue.comments.last.body}}

It will try to retrieve the last comment added by the customer.

Regards,

Marini

sueli lao June 30, 2022

Thanks a lot!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events