- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2020 03:33 AM
Hi, I'm quite new to the snow dev platform and have a simple request that I can't seem to get it to work correctly: I need to create an automatic work notes (e.g. say “This is an auto-generated message") when an incident of category Network is created by user. How/where do I do it?
I've tried adding in the business rule but doesn't get it to work.
A related question: if I assign this Network incident to a group automatically upon submitting the ticket, can the work notes be created automatically based on the group that I have pre-assigned instead of checking the category?
Thank you.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2020 04:02 AM
Hi Antonie,
If you're new to the platform and coding in general, I'd go with a flow designer approach to meet your needs.
1. You'd use a trigger of created and then your condition of category is Network
2. Can then use a simple Update Incident Record action to add a work note
3. Not sure if I understand your additional question but if you're wanting to set the assignment group based on the fact the user set the category to network, you'd just add another field to the Update Incident Record action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2020 04:02 AM
Hi Antonie,
If you're new to the platform and coding in general, I'd go with a flow designer approach to meet your needs.
1. You'd use a trigger of created and then your condition of category is Network
2. Can then use a simple Update Incident Record action to add a work note
3. Not sure if I understand your additional question but if you're wanting to set the assignment group based on the fact the user set the category to network, you'd just add another field to the Update Incident Record action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2020 06:38 AM
Thanks Kieran, this solved my needs! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2020 04:33 AM
If you want the Work note to be specific for that group, you have to save it somewhere. Either create a new field on the Group or hard code it in the business rule.
If you create a new field you can do the following with a business rule:
Before insert business rule.
You can have a check if the Assignment group is filled in like so:
Or have a default Worknote to fall back on.
(u_work_note can be replaced by your new field on the group)
(function executeRule(current, previous /*null when async*/) {
current.work_notes = current.assignment_group.u_work_note || "This is an auto-generated message";
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2020 04:55 AM