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

Thanks so much for this solution Brad, I have created the UI Action and working exactly as you say!


This worked perfect for me!   Thanks for sharing.


Hi All,

 

I am stuck somewhere working in knowledge module. My requirement is when the knowledge article is about to expire. It will go for the approval ( workflow - Approval for retirement). If the approver here approves the request the article gets retired. This part is working fine.

But I also want that if approver rejects the knowledge retire request then the article valid to date should be extend by one year. I used the UI action as above with different condition but its not working. PFB the UI action code and help me.

 

Condition: current.u_action_required=='approval_for_retirement' &&sysapproval_approver.state=='rejected' && current.canWrite()

 

Script: 

var d = new GlideDate();


d.addDaysUTC(365);


current.valid_to = d.getDisplayValue();


current.workflow_state = 'draft';


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


action.setRedirectURL(current);


current.update();

 

Regards,

Nandan

This sounds like something you could do entirely within a workflow automatically. Why involve a UI action? That's a manual trigger and really takes the automation out of the process (aside from the approval part.)