JSM Cloud with JMWE - I have an event-based action setup to post a public comment back to a customer if they make a comment on a closed case. It's using a Nunjucks condition as below:
{{context.comment.jsdPublic and issue.fields.status.name == "Closed"}}
We recently encountered this comment happening when an internal support agent made the comment (the case wasn't actually closed at the time they were making the comment, they made the comment in context of the close case action, and I think JSM just handled the close action micro-seconds before the comment part).
Any ideas on how to tweak that Nunjucks context to exclude when the comment context was NOT the assignee making the comment?