- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2019 01:33 AM
Hi All,
I'm trying to add comments to a task form without them triggering a notification but if i use setWorkflow(false) it doesn't run the necessary rules to link the sys_journal_field record to the task form with the requisite sys_audit and sys_history_line records.
Does anyone know of a way to do this?
Cheers
Dave
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2019 03:09 AM
Ended up just adding an advanced condition into the incident updated for ess notification to suppress the notification when it sees a string value i'm adding into the comment when i add the email body.
Documented the whole thing as below just in case anyone else is interested.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2019 01:38 AM
Hi,
One quick fix is to disable notifications and run your script and then enable it again.
Or instead of disabling notification, redirect all notification to some test email address in email properties. Run your script and then remove this.
Mark the comment as a correct answer and helpful if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2019 01:42 AM
I'm adding content sent from the email client so that it shows up in additional comments, this isn't a one-off update, it'll be running continuously.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2019 01:47 AM
Ah okay. So notification is being triggered as it is considering an update wheneve you add an comment.
If that is the case, can you able to differentiate the comment that you add with the other comments? IF yes, you can add that as a condition in your notification to not trigger if update is to comments and the comments content is "".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2019 02:08 AM
Yeah i was hoping for something a bit cleaner that looking for string values in the comment or making changes to hidden checkbox fields etc.