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

Why is my automation silently failing: CSAT comment to custom field

Glen Cochrane
Contributor
June 25, 2024

I have been running an automation rule for well over a year without any problems. However, I just noticed that it was silently failing around March this year.

Automation rule is set as this:
How to store a CSAT comment in a text type custom field using Automation
https://confluence.atlassian.com/jirakb/how-to-store-a-csat-comment-in-a-text-type-custom-field-using-automation-1360661427.html

Below are screenshots of the automation, a log example where it indicates "success", and the issue history where it proves it wasn't successful. (I have copied the rule with a manual trigger, which I've had to use in the meantime.)

Thanks for any insight!
Glen

csat-rule-setup-2.pngcsat-rule-setup-1.pngcsat-rule-log-example.png

issue-history-example.png

3 answers

1 accepted

1 vote
Answer accepted
Glen Cochrane
Contributor
July 3, 2024

I reached out to support and this is the solution which I have tested and validated:

[Note: My custom field name is "CSAT feedback comment"]

Automation rule:

Trigger: Scheduled > Hourly
Branch: JQL >
Satisfaction IS NOT EMPTY AND "CSAT feedback comment" IS EMPTY AND updated >= -2h AND updated <= -5m
 
Action: Edit Issue > Set CSAT feedback comment to:
{{issue.properties."service-request-feedback-comment".comment}}

 

 

Koen Bruggeman
Contributor
July 8, 2024

hi glen, this is the reply i had:

 

As I checked further, this automation CSAT Comment ? should work fine, when the CSAT comment is added within 2-3 seconds after selecting the Rating. If the comment is long then it will not work.

I will explain it here,

The Moment you select the Rating , Satisfaction Date will be recorded.

This will trigger the Automation to execute and fetch the CSAT comments.

Now when the CSAT Comment is long and if user takes sometime to add and click Add a Comment , Automation will be executed which will not capture the CSAT comments.

You can test it in any ticket now also with below steps.

Click on Rating.

Add a big comment typically more than 4-5 seconds and click Add a comment.

Now in Automation audit logs , you can see the comment is empty in Log action (CSAT comment is).

This is what likely to be happened.

 

Glen Cochrane
Contributor
July 8, 2024

Hi @Koen Bruggeman ,

This is interesting but it leaves me wondering on two points (and it doesn't provide a solution).

1. If this is "likely what happened", then what changed in March/April? The rule used to work fine and I don't think users en masse started to have lag in their comment submit times.

2. The rule's trigger is/was set to "Any change to satisfaction date". I suspect an api changed and the satisfaction date (to the second) stopped updating and began only logging the initial upon star rating.

Anyway, I appreciate the update. The rule revision I made per my support ticket suggestion has worked flawlessly.

*EDIT: The revised rule did have some errors related to invalid issue types in the JQL. I amended the JQL to 

 

type not in (Task, Sub-task) and Satisfaction IS NOT EMPTY AND "CSAT feedback comment" IS EMPTY AND updated >= -2h AND updated <= -5m

 

 

Cheers,
Glen

Koen Bruggeman
Contributor
July 9, 2024

i followed my support ticket as well.

1. create webhook

2. automation which is triggered by the webhook

3. read webhook

4. filter CSAT comment from webhook

5. add CSAT comment from webhook to customfield

 

let me know if you're interested in this solution as well. its a bit of a hassle tho :-) it was for me at least.

 

0 votes
Koen Bruggeman
Contributor
July 1, 2024

I was logging a ticket for this exact same issue! Stopped working since March 2024! While this suggested self-serv solution popped up.

i used an automation to read {{issue.properties.service-request-feedback-comment.comment}} and copy the comment into a custom field.

Since March 2024 it stopped working. Going back to search in the Audit Log doesnt offer me logs before April 2024. What happened?

The automation doesnt show it malfunctioned but it stopped working since March 2024.

Screenshot 2024-07-01 150244.png

Koen Bruggeman
Contributor
July 1, 2024

apparently i cannot go further back than 3 months in the audit log, also in other automations.

what this always like that?

 

anyway, the automation stopped working since March 2024. I checked CSAT comments from Feb 2024 and before, and they where pasted into the custom field automatically without any issue.

Like Glen Cochrane likes this
Glen Cochrane
Contributor
July 2, 2024

Thanks @Koen Bruggeman ,

Glad to know it isn't just me!! 

Would you mind replying back with your ticket number; I would add myself as a watcher/participant to get updates.

Thank you,
Glen

Glen Cochrane
Contributor
July 3, 2024

Oh I see, you also created a community thread question. I thought you created a support ticket. 

Thanks @Koen Bruggeman ,
Glen

Koen Bruggeman
Contributor
July 3, 2024

i created a support ticket as well but i dont see how i can share it to you

i will let you know what they answer to me via this ticket

Like Glen Cochrane likes this
Glen Cochrane
Contributor
July 3, 2024

I have just created a ticket. I cannot seem to share it with you but this is the/my ticket number:
https://support.atlassian.com/requests/JST-1016242/

Like Koen Bruggeman likes this
0 votes
YY Brother
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 25, 2024

Hi @Glen Cochrane 

Welcome to our Community.

I didn't see the unexpected result from your last screenshot. You meant the automation was executed successfully, but the actual value of CSAT feedback comment field is incorrect? I saw this field's value was updated.

Hope you can clarify it so that we can analyze it further.

Thanks,

YY哥

Glen Cochrane
Contributor
June 25, 2024

Hi @YY Brother ,

The last screenshot shows the CSAT feedback comment field was updated two days later but from a manual trigger as noted in the screenshot.

The issue is that the rule that is triggered from Value Changed to Satisfaction Date does not update the feedback comment as it should, and used to.

The screenshot if the rule shows this trigger.
The screenshot of the log shows it thinks it was successful.
The screenshot of the issue history shows it did not update CSAT comment on June 22 when the rule ran.

Thank you,
Glen

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