Categories

1. Get Item Categories

getItemCategories ()

Parameters

None

Description

The ‘getItemCategories’ function returns a list of all the Configuration Item (CI) Categories defined in the system.The function returns a HashMap containing a list of string values including the Category ID and the corresponding string value.

2. Get Item Types For Category

getItemTypesForCategory (String categoryId)

Parameters

  • categoryId The unique CategoryId to retrieve the Item Types for.

Description

The ‘getItemTypesForCategory’ function returns a list of all the Item Types that exist in the system for the selected Category. Specify the Category ID as the parameter. The function returns a HashMap containing a list of string values including the Item Type ID and the corresponding string value.

3. Create Item Type

createItemType (String itemTypeName, String incidentTeamID, String problemTeamID, String changeTeamID, String requestTeamID, String manufacturerName, String categoryID) (since 5.5)

Parameters

  • itemTypeName New name for the Item Type
  • incidentTeamID The default Incident Team Id for this Item Type
  • problemTeamID The default Problem Team Id for this Item Type
  • changeTeamID The default Change Team Id for this Item Type
  • requestTeamID The default Service Request Team Id for this Item Type
  • manufacturerName Name of Manufacturer (created if not available)
  • categoryId The default categoryId to associate the new Item Type

Description

Facility to create an ItemType (product) based on the name, the provided support teams, the manufacturer (which will be created if it doesn’t exist) and the Category ID which is returned by getItemCategories().

4. Get Item Type

getItemType (String itemTypeId) (since 6.0)

Parameters

  • itemTypeId The unique itemTypeId to retrieve details for.

Description

The ‘getItemType’ function returns item type details of the specified item type id. This method exists as a quick means to determine what category an item type is defined as. This method returns a HashMap containing the item type name and the category name.