condition for the notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 03:08 AM
Hey.
I need to build a condition for the notification so that an email will be sent only when the additional comments are changed by the assigned to.
I have tried this code but it didnt work:
can someone fix it for me please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 03:24 AM - edited 12-10-2023 04:13 AM
Hi @Shir Sharvit ,
It should be work if you add condition in "Additional Commets" changes.
Please try once.
@Shir Sharvit , please try once. Also check @Danish Bhairag2 post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 03:28 AM
can you please send a picture how it should look
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 05:02 AM
this is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 03:42 AM
Hi @Shir Sharvit ,
In your script in order to check if assigned to name is there or not use something like this
var assignedTo = current.assigned_to.getDisplayValue();
if(current.comments.changes() && current.comments.getJournalEntry(1).includes(assignedTo) > -1){
answer = true;
}
Thanks,
Danish