When a user marks that article as unhelpful, then a feedback task create and assign to author

Research
Tera Guru

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.

Research_1-1745302510865.png

 


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

Research_0-1745302359542.png

 



Please guide me steps 

Thanks
Srikanth



1 REPLY 1

Devi D
Tera Expert

@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.

Regards
Devi