Client configurations

Introduction to client configurations in ConSol CM

Client configurations can be used to configure the user interface of CM/Track and customer-specific REST clients. This manual describes the configuration of CM/Track.

Concepts, terms and definitions

Concept

Other terms

Definition

CM/Track

 

ConSol CM add-on, portal which allows customers to create and view their cases

JSON

JavaScript Object Notation

Format used for client configurations in ConSol CM

activity form

ACF, Activity Control Form

Form which is displayed when the user executes an activity. The required fields of the form need to be filled out before proceeding.

default values script

prefill script

Script used to prefill fields with certain values for case creation

Purpose and usage

The client configuration allows to define the following aspects for CM/Track:

It is possible to create several client configurations for different CM/Track instances. The mapping is done using system properties, see Mapping the client configuration to the CM/Track instance.

A client configuration consists of one or several JSON files where the settings are made. These settings override the default configuration of CM/Track. The default configuration is used for all aspects which are not configured explicitly in the JSON files, i.e. the JSON files do not have to be complete. It is sufficient to configure the deviations from the default configuration.

Available attributes for client configurations

The client configuration for CM/Track includes the following files:

The following sections describe the available settings in each file.

config.json

This file contains the settings for displaying cases and the welcome page. The following attributes can be used in this file:

localization.json

The localization files, e.g., localization_en.json and localization_de.json, contain the GUI texts which are displayed in CM/Track in the respective language after logging in.

In addition, you can adapt the delimiters which are used for fixed point numbers by adding the attributes number_decimal_separator and number_group_separator with the desired delimiters to the localization file of each language.

The following example shows the attributes with the default values for English:

public.json

The public.json file contains the configuration of CM/Track before logging in. This includes the password reset functionality on the login page and localizations.

The following attributes can be used in this file:

Basic tasks

Working with client configurations

Each client configuration has its own tab. At the bottom of the page, you can find the actions which apply to the whole configuration. Each file within a configuration has its own editor. The actions below the editor refer to the respective file.

You can perform the following actions on client configurations:

Configuring the case page

The following aspects can be configured for case pages in the config.json file:

The following aspects can be configured for case pages in the localization.json file.

Rules for configuring the field layout

The following section describes how to define the field layout. The general principle applies to the following attributes:

The following rules apply:

In the below example, the case layout has two rows and three columns. The first row contains the fields module and categories. The field categories spans two columns. In the second row, there is an empty position next to the field priority.

"layout": {

"helpdesk_standard": [

["module", "categories","categories"],

["reactiontime","priority","EMPTY"]

]

},

The following example shows a configuration for an activity form called qualify with the field categories spanning two columns:

"acf" : {

"qualify": [

["impact", "severity", "EMPTY"],

["categories", "categories", "EMPTY"],

["product_table", "product_table", "product_table"]

]

}

If the field names are not unique because the activity form contains fields of several case field groups, you need to use the syntax groupName.fieldName to reference the fields.

Use 3 columns in your activity form if you have tables which require lots of space.

You can use headlines to structure the fields:

Configuring rich text fields

Comments and rich text fields have rich text editors. They are configured in the attribute richTextEditorSettings, which contains several settings:

The following example shows how to use the settings:

"richTextEditorSettings": {

"customfieldContentFileMaxSize": 10,

"froalaConfig": {

"mainCommentEditor": {

"heightMin": 200,

"toolbarButtons": [[

"bold", "italic", "underline", "strikeThrough", "|",

"align", "|", "paragraphFormat", "fontFamily", "fontSize", "textColor", "backgroundColor", "-",

"subscript", "superscript", "|",

"formatOL", "formatUL", "indent", "outdent", "|",

"insertTable", "|", "specialCharacters", "insertLink", "insertImage"]]

},

"commonRichTextFieldsEditor": {

"height": "auto",

"toolbarButtons" : [

"bold", "italic", "underline", "fontFamily", "fontSize", "insertImage"

]

}

}

}

If the rich-text field has the setting Rich text display in view mode, the text used in the link and the title of the popup window can be configured in the localization.json file. Add the following keys:

'preview_show_link': '[Show content]',

'preview_dialog_title': 'Content view'

Configuring the welcome page

The welcome page is displayed after the user has logged in to CM/Track. It consists of the following elements:

The following files are relevant for configuring the welcome page:

The following figure shows a welcome page for a user with access to two queues. Note that all queues to which the user has access are displayed on the welcome page, even if they have not been configured explicitly. Queues without a customized configuration are shown with the default settings.

Configuring the boxes for case creation

The following example shows a configuration for the welcome page in the config.json file:

"welcomePage": {

"queuePanels": [

{

"@name": "HelpDesk_1st_Level",

"description": "custom_HD_description",

"icon": "fa-bug"

},

{

"@name": "ServiceDesk",

"description": "custom_SD_description",

"icon": "fa-question"

}

]

}

Code example 33: Example configuration of the welcome page

The following example shows the keys created for the welcome page in the localization.json file:

{

"custom_HD_description": "Queue for IT questions",

"custom_SD_description": "Queue for general questions"

}

Code example 34: Excerpt from localization_en.json showing the custom labels created for the queue description

The following parameters are available:

If no explicit configuration is provided, the default values (description of the queue in the Web Admin Suite and a folder icon) are used. All queues for which the user has permissions to create a cases are displayed.

If more than one queue is available, the order of the queues is the order in which the queues are configured in the config.json file. The queues which are not explicitly configured are displayed at the end.

Configuring the news

The welcome page can be extended by including news. For this purpose, a script of the type News publisher (see Scripts of the type News publisher) is created on the Scripts page of the Web Admin Suite, and the display configuration of the news is added to the config.json file. The news which are returned by the script can be retrieved from several sources, for example, ticket comments or RSS feeds, or created directly in the script.

The following code shows an example of the news configuration in the config.json file. It configures the display of news items as created by the script news.groovy. Please see News widgets for a description of the other settings.

"newsConfiguration": {

"scriptName": "news.groovy",

"autoscroll": "smooth",

"title": "News",

"height": 350,

"createDate": true,

"updateDate": true,

"author": true,

"color": "#488ca1"

}

Code example 35: newsConfiguration section of config.json file

The localized title of the news section is added to the attribute newsTitle of the localization_en.json / localization_de.json file. If no localized title is specified, the default title “News” is displayed.

Configuring the password functionalities

The password functionalities are configured in the following places:

In both cases, false means that the respective item is displayed and the user can change / reset the password, and true means that the password cannot be modified. The default value is false.

Advanced tasks

Using the JSON editor features

The JSON editor has the following features:

Setting system properties for CM/Track

There are several system properties which need to be set for using CM/Track.

Mapping the client configuration to the CM/Track instance

Use the property cmas-restapi-core, domain.map.for.client.config.<name> to map the client configuration to one or several CM/Track instances. The property value has to be the domain without the protocol, target port (if required), and path of the respective CM/Track instance. If you want to map several CM/Track instances to the same client configuration, you can use a comma-separated list of domains.

Example:

This system property has to be added manually.

Allowing communication between ConSol CM and CM/Track

For security reasons, communication between the ConSol CM server and CM/Track needs to be enabled explicitly. This is done using the following system properties:

Managing client configuration after updates

The template for the client configuration is added during the installation or update of ConSol CM. When you update ConSol CM to a newer version, the files of existing configurations are left as is. This means that new configuration options and localizations are not added automatically. You can add them manually after the update based on the template files.