in Service Manager

Create custom SCSM Console workspace with High-Res folder image on overview page

If you are working with Service Manager you definitively know the default workspaces aka wunderbars which separate for example Work Item views from Config Item views. Sometimes it would be very handy to be able to create your own workspaces which could for example separate your custom CI classes and views from the default Service Manager views. However, creating a new workspace in Service Manager Console is not possible. But guess what: This can be done by manually adding some XML code to one of your Management Packs.

Custom SCSM Cars Workspace


Since a workspace is basically nothing other than a normal folder which has RootFolder as parent folder you first have to create an additional folder in a Management Pack by adding the following XML snippet.

Make sure you reference the Microsoft.EnterpriseManagement.ServiceManager.UI.Console.mp Management Pack which contains some tasks we’ll need later on. Also make sure, a reference to the System.Library Management Pack is present.

Add the appropriate DisplayString element to name the new wunderbar and you can also add an ImageReference if you want to give it a shiny icon. The wunderbar icon size is 16x16px for collapsed and 24x24px for expanded wunderbars. Since we are going to use different image sizes depending on whether the workspace is expanded or collapsed, we need to define an ImageReference element for each one of them.

Also you need to add a Resource element which contains your image files.

Besides the ImageReferences defined above, we have to tell Service Manager when to use which image. So we need to add a Category element for each of the newly added image. Each Category element references an enumeration that tells Service Manager if this image is going to be used as a 16xp or 32px icon.
What? I thought you told me that expanded workspaces are using icons of 24px in size? Yes, and that’s still true 🙂 But there exist only enumeration values for 16 and 32px so we have to use the 32px one in this case. You will see later on in this post that there are other applications where we need to use the 32px enumeration for images of another size

If you want to be able to create new folders and views within your new workspace in SCSM console, it is necessary to add a FolderItem for the workspace folder

Instead of providing the ability to create folders and views directly in the workspace, it may be more appropriate to create a static folder and to enable folder and view creation for this folder. You can sure do this by adding a new folder to your Management Pack which has the newly created wunderbar as ParentFolder

Additionally to display “Create View” and “Create Folder” tasks for this new parent folder, the following FolderItem have to be added for the newly created folder.

Create a Managment Pack Bundle which contains the MP XML together with the images. If you need further information on how to create a Managment Pack Bundle file, you can refer to this excellent blog post written by Lee Berg to get additional information on this topic.
Import the MPB file, et voilà: a new workspace which contains your new folder is visible in the bottom left corner of your SCSM Console. When you collapse the workspace you should see a smaller version of the assigned image.

Custom SCSM Workspace

So far so good, but wouldn’t it be nice to have a suitable image also for the new root folder in your workspace? Sure, let’s do this! All you have to do is to add the following ImageReference right?

Almost 😉 This will assign the image to your new folder but what about the folder preview like seen in the screenshot below? Pretty blurry no? The image shown in the folder preview should have a size of 64x64px. However Service Manager just takes the 16x16px image used for the folder icon and scales it.

SCSM Folder Preview Blurry

So to change this we are going to need another image, a corresponding Category element and an ImageReference element. Add another image for the folder preview as you did for the folder and the workspace but this time it should have the size of 64x64px.
Add a second ImageReference element to assign the new image to your root folder in addition to the existing 16px image.

As your already did for collapsed and expanded workspace icons, you have to tell Service Manager when to use which image. This can be done by adding another category targeting your new 64x64px image. Since there only exist enumeration values for 16 and 32px, you again have to use the 32px one in this case.

Import the updated Management Pack and you will see that the folder preview shows you a much nicer image than before.

SCSM Folder Preview Sharp

Write a Comment

Comment

  1. Thanks for that, very helpful!

    I have added several custom tasks within “My Work Items” workspace which I want available within this new workspace.

    Can I leverage that work and somehow add it to this new workspace or do I need to recreate the tasks targeting the new workspace?

    Cheers,

    Aengus

    • Hi Aengus
      You should be able to add existing tasks to a workspace by using a FolderItem element. Just make sure you add the appropriate workspace as folder target, like it is done for the Create Folder and Create View tasks:
      [code language=”XML”]
      <FolderItem ElementID="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.Task.CreateFolder" ID="workspace.cars.folderitem.createfolder" Folder="workspace.cars" />
      <FolderItem ElementID="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.Task.CreateFolder" ID="workspace.cars.folderitem.createview" Folder="workspace.cars" />
      [/code]
      Hope this helps!
      Cheers,
      Stefan