how to publish retire knowledge articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 03:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2017 06:59 AM
Thanks so much for this solution Brad, I have created the UI Action and working exactly as you say!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 09:30 AM
This worked perfect for me! Thanks for sharing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 04:43 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 04:59 AM
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.)