Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,389
Community Members
 
Community Events
165
Community Groups

Comment automation using regex

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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

166 views 0 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you