Forums

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

JMWE - nunjucks advice to add "and comment wasn't made by the case assignee"

Jennifer Marple
Contributor
April 16, 2025

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? 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
John Funk
Community Champion
April 18, 2025

Hi Jennifer - Welcome to the Atlassian Community!

You should be able to add something to the effect of 

initiator != assignee

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events