Attaching KA to an incident - Add message in work notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2024 04:58 AM
Hi
When a Knowledge article is attached to an incidnet, I would like to add a message in the work notes specifically. How do I track that an KA has been added to an incidnet? is there a link table so I can write a business rule on that insert?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2024 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 08:30 PM
Thanks Yashsvi , I tried this but I would like to add my custom text as part of the inciden'ts work notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 07:55 AM
Hi @gnewuser ,
The relationship between a task(ex: incident) and knowledge is store in the [m2m_kb_task] table.
You can write an after insert business rule on [m2m_kb_task] table and if inserted write some notes on the task's work notes.
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 08:29 PM
Thanks so much for your response. However the business rule on m2m_kb_task table does not write the text I want:
1. I had it as a after insert business rule on m2m_kb_table
2. I have the following code inside the BR and the work notes are not updated
3. I know there is something off , what am I doing incorrect.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
// current.task.work_notes = "Attached to current incident " + current.kb_knowledge.number;
current.task.work_notes = "attaching the KB article on an incident" ;
})(current, previous);