KB Owner + Manager on knowledge article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2015 05:38 AM
Hello,
I would like to ask for advice. I get task to change Owner and Manager on knowledge base (kb_knowledge_base) from user to the groups (we are using default Knowledge - Approval publish workflow) .
First I did try to change on these two fields from sys_user to the sys_user_group. That works perfect on developer instance.
Then try to do the same on our customized test instance (Fuji Patch 3) and it ´s do not work. Test show to workflow run without any approving (no approval task was created) (see attachment).
My idea was to put two fields (owned and managers) on the KB article (kb_knowledge) and fill it with UI policies:
function onCondition() {
var ow = new GlideRecord("kb_knowledge_base");
ow.addQuery('title',current.kb_knowledge_base);
ow.query();
current.u_reference_1 = ow.owner;
}
Then I plan create new publishing WF with using these two field like approval.
Do anyone have any suggestion or help?
Thank everyone for every feedback!
Kind regard
M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2015 04:49 AM
I hope that I understood your requirement right.
You need an approval of the owner group ?
I checked the default Knowledge - Approval Publish workflow and it does not seem to be functional because it relies on the KBWorkflow().getApprovers(current); function call. Have a look at the KBWorkflow Script Include: it does not contain any function ! The approval activity then cannot work because it never gets the approvers populated.
You have to create your own script include to address this. For imagination, refer to the KBWorkflowSNC script include that does contain the function:
getApprovers: function(knowledgeGR) {
var kbOwner = knowledgeGR.kb_knowledge_base.owner;
var kbManagers = knowledgeGR.kb_knowledge_base.kb_managers;
//Approval activity will handle any trailing comma, if there are no managers.
return kbOwner + "," + kbManagers;
You have to accomodate this to your customisations on the level of KB record.