Develop > Programming Guide > JavaScript and Service Manager reference > List: JavaScript functions in the ScriptLibrary

List: JavaScript functions in the ScriptLibrary

The following table lists some of the JavaScript functions available in the ScriptLibrary of Service Manager. These functions are part of system JavaScript files and should not be directly modified.

JavaScript functions in the ScriptLibrary Description
addToGroup Adds one or more configuration items (CIs) to a Configuration Management list group and updates the list group record if successful.
checkAllowedOption Returns the next valid version number of a Configuration Management baseline group if there is only one valid version number available.
checkVersionString Validates a version string to ensure it adheres to Configuration Management baseline group version number requirements.
isfileexist Determines whether a file exists or not.
isInGroup Searches for one configuration item (CI) in a Configuration Management list or query group.
removeFromGroup Removes one or more configuration items (CI) from a Configuration Management list group.
returnGroupMembers

Returns an array containing the group members of a Configuration Management group.

returnMyGroups

Returns an array containing all the groups to which a configuration item (CI) belongs.

skipApproval Prevents an item's approval status from being reset to "pending."