Knowledge Article - Rejection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 01:51 PM
Is there a Knowledge Article Rejection Notification setup anywhere?
When I reject a Knowledge Article, how does the Author know I rejected it? I realize they can look in their 'My Knowledge Articles' from time to time to see if there KB Article has been published but I was hoping there was something available that would notify the Author.
I tried creating a Rejection Notification (with event) but it did not work.
We also tried adding it to the Workflow, but there is no choice for 'Author'.
We're using Jakarta.
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 02:25 PM
Hi Ronald,
There is no OOB notification for knowledge article rejection.
I have configured knowledge article rejection notification on your instance.
This notification is triggered on event.
Event is generated by business rule.
Please see below sample code of business rule
This business rule runs on kb_knowledge table and with condition of current.workflow_state.changes()
if (current.workflow_state.changesTo('rejected')) {
// Send Notice when a KB Article is 'Rejected'.
gs.eventQueue("kb_knowledge.approval.rejected", current, current.number, current.author);
}
I hope this helps you to resolve issue.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2017 06:10 AM
Wow! Yes extremely helpful. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2017 10:44 AM
How could I add the rejection comments?
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2017 02:43 PM
You can configure mail script to get rejection comments are refer mail script in your email notification.
Please see example below
Create mail scripts in System Policy > Email > Notification Email Script->
- (function runMailScript(current, template, email, email_action, event) {
- var item = new GlideRecord("sc_req_item");
- item.addQuery("request", current.sys_id);
- item.query();
- while(item.next()) {
- var catalogItem = item.number + ': ' + item.cat_item.getDisplayValue();
- var misc = item.variable_pool.alt_poc;
- template.print(catalogItem + "<br/> Field: " + misc);
- }
- })(current, template, email, email_action, event);
Now you can call the above mail script in email notification(Message HTML) as ${mail_script:script name}
Here replace script name with the exact name of the notification email script you have created in step 1.
Regards,
Sachin