Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Comment automation using regex

sueli lao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 30, 2022

Thanks a lot!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events