Manager/Knowledge Base owner must approve for workflow to proceed.

reyservicenow
Tera Expert

is there a script or an out of the box for the Manager and knowledge base owner to approve the KB article before it can continue?

my thoughts are as followed:

this is for manager approval and i don't think is working.

answer.push(current.request.requested_for.manager);

and i think this here is for both but it is not working am i missing somehthing?

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;

i have attached pictures ... Also what workflows do they do in?

i want this to work for all KB articles- i was putting this in the request new knowledgeBase

thanks for the   help! Developer Community

goranlundqvist

1 ACCEPTED SOLUTION

ok lets try this !




Screen Shot 2017-03-07 at 5.45.09 PM.png


View solution in original post

16 REPLIES 16

Stage is optional, but you can have the same "review" stage if you like or create another one if you want to have separate..



//Göran


ok lets try this !




Screen Shot 2017-03-07 at 5.45.09 PM.png


goranlundqvist ok so i have published it and the manager is not getting the approval the system administrator is.. i am set as the manager and not showing up on the approvers list.


Sorry, went to bed



Hmm.. sounds strange.. but you have 3 approval activities? Why does the sys admin get the approval? are sys admin the owner for the KB?



How does the active workflow context look like? So you can see how the path it.. something like this:



find_real_file.png



//Göran


now do i do this in the request new knowledgebase workflow or in the knowledge approval- publish?