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

Chuck Tomasi
Tera Patron

Hi Mohammed,



I would recommend copying and pasting the content to a second article and leave the first retired. I don't see an easy way to reactivate the KBA on the UI. The other option is to write a script to restart the workflow and reset the stage.


Hi tomasi,



thanks for the prompt reply,



Can you please help me with the script?


bpippert
Tera Guru

We created an "Unretire" UI Action that sets it back to draft and sets the valid_to date to 2 years out.



Condition: (current.workflow_state == 'retired')   && (current.canWrite())



Script:


var d = new GlideDate();


d.addDaysUTC(730);


current.valid_to = d.getDisplayValue();


current.workflow_state = 'draft';


gs.addInfoMessage("Article " + current.number + " has been set to Draft");


action.setRedirectURL(current);


current.update();


Hi Brad,



But article workflows are not trigerring,


please suggest