- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2021 03:26 PM
I have a requirement to split the resolution field on an Incident into internal and customer facing resolution notes and to make the customer facing resolution notes visible to the customer on the Service Portal. Since I don't want to modify the Service Portal widget, I chose to use a business rule to copy the customer facing resolution notes to the Additional comments (customer facing) on the incident form. However, the activity log marks it as a field change and does not add it to the customer notes. Can anyone help me get it to work?
On before Insert or Update Business Rule: (I tried both lines of code, neither works)
Resolution notes on the INC ticket: (I want "customer resolution notes" to display in the Service Portal)
What it looks like on the INC ticket in the activities formatter: (scroll to the right to see how it's recorded in the activities formatter)
Here is what the user sees on the Service Portal: (you have to scroll to the right to see the rest of this, too)
TIA!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 10:26 AM
For those who may be looking for the answer, I finally found it.
current.comments.setJournalEntry('Resolution:\n' + current.close_notes);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2021 04:32 PM
current.comments = current.close_notes;
Should work in a onBefore Business rule.
Are you sure 'close_notes' is the correct field?
Also add below and try
current.comments = current.close_notes;
current.comments = 'Testing my notes';
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 10:26 AM
For those who may be looking for the answer, I finally found it.
current.comments.setJournalEntry('Resolution:\n' + current.close_notes);