- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hi All,
Today I will talk about who has access to publish or retire an article in ServiceNow.
Revised By Feature - Nobody can change this field as this is read only. User who has clicked on "Checkout" button automatically their name appears in Revised By field. Once they checkout only they can do the required changes on knowledge article. Until they do not publish even owner cannot do anything changes on the knowledge article.
They can change author as well. As they are the "Revised By". They can change anything.
-- Anyone has the access to check out the article once it is published. Whosoever checks out he/she becomes the main person who can perform anything until it is published again!!
Two Major function created OOB
1. Who can publish the article:
canPublish: function(current){
if(current.workflow_state!='draft') //If workflow state is draft only then the publish button should be visible
return false;
if(this.isOwnerOrAdmin(current)) //Knowledge base owner or admin can publish
return true;
if(this._isReviser(current) && this.safeExecute(this._knowledgeHelper.canContribute, current))
// Reviser with contribute access can publish
return true;
if(this.isMemberOfValidGroup(current,this.OWNERSHIP_GROUP))//Ownership group member can publish
return true;
return false;
},
_isReviser: function(current){
var reviser = current.revised_by.nil()?current.getValue('author'):current.getValue('revised_by');
if(gs.getUserID()===reviser) //If logged in user is same as Revised By user
return true;
else
return false;
},
Hope this helps you.
I hope this article helpful. Please mark it as helpful and bookmark if you like it.
Regards,
Shamma Negi
- 557 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.