Forums

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

Automation Rule Not Triggering as Expected

Nguyen Thanh Tien
Contributor
June 4, 2025

 The rule is intended to trigger when a comment is added that matches a specific feedback NPS score pattern and subsequently perform certain actions such as editing the work item and re-fetching data. However, despite a comment being added that matches the criteria, the automation rule does not seem to execute.

I have verified that the comment content matches the pattern exactly, and the rule is enabled. Could you please advise on what might be causing this issue or suggest any troubleshooting steps?iScreen Shoter - Google Chrome - 250604170600.jpg

iScreen Shoter - 20250604171004208.jpgiScreen Shoter - Google Chrome - 250604171058.jpg

3 answers

1 accepted

2 votes
Answer accepted
reza rouhafza
Contributor
June 4, 2025

Hey @Nguyen Thanh Tien 

Use a "Log action" for {{comment.body}} smart value and check if this smart value returns the commented text. According to this document, you should use this smart values to access comments instead of {{comment.body}}:

{{issue.comments.last.body}}

 

Document Link: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/ 

Bill Sheboy
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 4, 2025

Hi @reza rouhafza 

If you read the documentation for the Issue Commented trigger, you will find it supplies an additional smart value for the specific comment involved:

https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Issue-commented

 

Kind regards,
Bill

Like John Funk likes this
Nguyen Thanh Tien
Contributor
June 11, 2025

@reza rouhafza it is now working after updating the smart value to {{issue.comments.last.body}} as your comment. Thanks!

2 votes
Bill Sheboy
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 4, 2025

Hi @Nguyen Thanh Tien 

The condition you show appears to use the plain text for the value:

  • smart values condition:
    • first value: {{comment.body}}
    • condition: contains
    • second value: Feedback NPS Score:

 

That will work if the comment has a value as plain text or in a bullet markup format.

Have you checked if there are any control characters, tabs, etc. in that comment body?  If so, those will not match the comment body in the condition.

 

Kind regards,
Bill

0 votes
arielei
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 4, 2025

Hey @Nguyen Thanh Tien 

What type of field is "Feedback NPS Score"?

Suggest an answer

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

Atlassian Community Events