Can the Knowledge approval workflow be bypassed if created by Knowledge approver?

bostonsnow
Kilo Guru

Hello all,

 

I've been following a somewhat cumbersome workflow for creating Knowledge articles where I...

 

1. Submit a new Knowledge article

2. Pull up the new Knowledge article and click Publish

3. Pull up the new Knowldge article yet again and approve it.

 

I feel like there must be an easier way to do this. Is there a way to bypass the Knowledge approval workflow for Knowledge admins such as myself so I can go straight to Publish?

 

Thanks!

 

Mike

4 REPLIES 4

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Michael, the Publish UI action is what is starting the workflow.   If you look at the script you will see the first line is:


if (current.kb_knowledge_base.kb_version == "3" && new KBWorkflow().startWorkflow(current, "workflow")) {



The 'new KBWorkflow().startWorkflow(current, "workflow"))' portion is what is starting the workflow.   You can navigate to Script Includes and search for "KBWorkflow" and you will see that workflow extends the read only KBWorkflowSNC script include.   In the KBWorkflowSNC script include there is a function called startWorkflow which basically starts the workflow.



What you can do is edit this UI action to only call the startWorkflow function if the user is not part of the knowledge admins.   Or you could modify the workflow to check to see if the user who published the workflow is part of the group and if so just end the workflow.



Please mark this post helpful or the correct answer so others viewing can benefit.


Hello Michael,



Thanks for much for the response! Apologies for the follow up question, we are still familiarizing ourselves with the platform.



Would this be an edit to the Condition or the Script on the Publish UI Action?



"What you can do is edit this UI action to only call the startWorkflow function if the user is not part of the knowledge admins."



If you could provide exactly what we would need to change I would greatly appreciate it.



Thanks!



Mike


Hello, were you able to figure out how to bypass?

shivanipatel
ServiceNow Employee
ServiceNow Employee

Michael,



We are glad you took advantage of the ServiceNow Community to learn more and to get your questions answered. The Customer Experience Team is working hard to ensure that the Community experience is most optimal for our customers.



If you feel that your question was answered, we would greatly appreciate if you could mark the appropriate thread as "Correct Answer". This allows other customers to learn from your thread and improves the ServiceNow Community experience.



If you are viewing this from the Community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thanks,


Shivani Patel


Unknown-1.png