Making 'Pending retirement' visible at Knowledge Portal

Mussie
ServiceNow Employee
ServiceNow Employee

Hi Guys,

I have got a requirement from a client where I need to make knowledge articles which are in 'Penning Retirement' state/stage visible to users just like those which are published. Anybody has any idea how I can address this?

Thank you,

Mussie

1 ACCEPTED SOLUTION

Mussie
ServiceNow Employee
ServiceNow Employee

Hi Guys,


We resolved this using the following method:


- Added a new field called u_pending_retirement


- Edited the 'Retire' UI Action script as follows:


        commented out the below code:


        current.workflow_state = 'pending_retirement';


        and added the following:


        current.u_pending_retirement = true;    


Now, what happens is when the retire button is clicked, instead of changing the workflow to 'pending_retirement', it remains in published and the u_pending_retirement checkbox is checked. And once the request for retirement is approved, the workflow will be changed to retired. However, if the request is rejected, it will remain in published and the u_pending_retirement is unchecked (we needed to edited the rejection script on the workflow)


find_real_file.png



Regards,


Mussie


View solution in original post

9 REPLIES 9

Deepak Ingale1
Mega Sage

Hi Mussie,



You will have to debug first what is there in the system which hides the articles when those are in particular state. Once done, you can find the effective entity and modify it.


I can think of two ways by which these articles might not be appearing .



1) ACLs configured


2) Some Before query business rule


Hi Deepak,


Thanks for the response, apart from Debug Security Rules, what other debugging tools can I use?


Mussie


Hi Mussie,



Could you please also provide the screen captures where exactly you require these KB articles to be available.



For debugging, I normally use "Debug Security", "Debug Business rules (Details)" and "Debug Log" in such cases


Hi Deepak,


I want to the knowledge articles to be available in the Knowledge Portal:



find_real_file.png


Thanks,


Mussie