How to display knowledge base hierarchy

Recently I was asked by Knowledgebase Manager why she was not able to remove an unnecessary category in ServiceNow. The answer was simple: there is an ACL which checks if a category has a child, either article or other category. We found a retired article which was still linked to this category. Because of that, it was impossible to delete this category.

Continue reading How to display knowledge base hierarchy

JavaScript Automatic semicolon insertion in case of return

Today I’m going describe something not directly related to ServiceNow. But JavaScript is our language and we use it almost every day. The issue I’m going to write about might be weird for you if you have some background in languages like Java or C#.

Let’s write some simple code:

function getObject(){
    return{
        param: 5
    }
}

var myObject = getObject();
gs.print(myObject.param);

Continue reading JavaScript Automatic semicolon insertion in case of return