how to publish retire knowledge articles

mohammedhyderal
Kilo Contributor

Hi All,

I have knowledge article which got retired due to no response from the approver for 30 days, I have that knowledge articles to get activated back,

someone please help on this will really be appreciated

18 REPLIES 18

I suggest you look at the Publish Revision step in the Knowledge - Publish Knowledge workflow. I am guessing you could create a UI Action that just does the same steps as that.



Effectively, it is just setting the following values on the record:


workflow_state = "published";


retired = "";


published = new GlideDate();


Hi Mohammed,



If you reset the workflow via script, then it would go back to Draft so you would need redo the approval to get it from Draft to Published. Jumping from Retired to Published might get you in trouble when it comes to an audit because there is no audit trail HOW it got back in to Published without anyone acknowledging the process.


Thanks for the support,



Could you please help me in sharing the reset script for the workflow?


Hi Mohammed,



Try this in a UI action. (UNTESTED)



Name: Reset


Table: kb_knowledge


Active: true


Show Insert: true


Show Update: true


Form button: true



Condition: current.workflow_state == 'retired';


Script:


new Workflow().restartWorkflow(current, true);


action.setRedirectURL(current);


hi Mohammed,



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



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.



Thank you