JMWE Event Based Action - Conditional Execution

Stephen Dyball December 1, 2023

Hi!

I am trying to set up an event-based action in JMWE so that whenever a comment is created with a specific user tagged in, an email is sent out to notify them, I have the Email side sorted, but I need some help in setting up the conditional execution, I'm assuming it's going to be something like {{ issue.fields.comment.last.body.includes("accountid:12345678") }} but I can't seem to get this working.

Any ideas are greatly appreciated as I'm losing my mind!

Thank you! :D 

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 1, 2023

Hi @Stephen Dyball 

in an event-based action that reacts to a comment created event, the new comment is available in the "context", so you can use:

{{ context.comment.body.includes("accountid:12345678") }}
Stephen Dyball December 1, 2023

David, you've saved my sanity once again! Thank you so much!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events