When a user marks that article as unhelpful, then a feedback task create and assign to author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:15 PM
Knowledge Article
when a user marks that article as unhelpful, then a feedback task should be automatically created linked to the article and assigned to the author of the article.
Please guide me the steps
Some how feedbak task is created when knowledge article marked as unhelpful
but the feedback task is not assigned to the author of the article I wrote Business rule no luck
Please guide me steps
Thanks
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:31 PM - edited 04-21-2025 11:33 PM
@Research you are using current. Article is that correct refrence fiels on feedback task table , usually its source_table and source_id when the task is related to knowledge article . so , you might need to use current.source_id instead of current.article .
Ensure author is populated in the kb_knowledge record and ensure assigned_to and author in kb_knowledge is alo refers to sys_user table
var kbArticle = new GlideRecord('kb_knowledge');
// Use source_id instead of article (adjust based on your actual field)
if (kbArticle.get(current.source_id)) {
var articleAuthor = kbArticle.author;
if (articleAuthor) {
current.assignment_group = '';
current.assigned_to = articleAuthor;
current.update();
gs.info('Feedback task ' + current.number + ' assigned to ' + articleAuthor);
} else {
gs.error('No author found for article ' + kbArticle.number);
}
} else {
gs.error('Knowledge article not found for feedback task ' + current.number);
}
} catch (e) {
gs.error('Error in Business Rule: Assign Feedback Task to Article Author - ' + e);
}
})(current, previous);
If my response helped please mark it correct.
Devi