Handler - BusinessHoursFinder
BusinessHoursFinder copies a reference to BusinessHours data card used to a data card to be edited from behind multiple references. For example, if "Incident" template has the following references: Incident->Support Person->Support Group->Business Hours, the metadata configuration of this attribute would be like $supportPerson:group:businessHours$. Only one reference path can be defined.
Reference found by BusinessHoursFinder can be used by other attribute handlers like BusinessTimeBetween, SLADeadLine and ValueChangeMonitor. If those handlers are configured to use BusinessTimeFinder handler, the SLA configurations of those attributes will be disabled.
See SLAFinder handler documentation for information about configuration of business hours and "end_of_business_day"-notation.
Default business hours can also be used. If business hours for some reference paths do not exist, the default business hours data card can be used. This functionality can be implemented by configuring the following metadata: Default Business Hours template and Default Business Hours data card.
Make sure that the attribute with BusinessHoursFinder handler is located after the priority attribute and before any other attributes with handlers that use the business hours and are fetched by the BusinessHoursFinder handler. For example, a BusinessTimeBetween handler that is placed before the attribute with BusinessHoursFinder handler may not use the correct BusinessHours if the SLA or BusinessHours has changed since the last save.
The following tables provide information on the attribute settings and metadata requirements for SLADeadline handler.
Table 1. Attribute Settings
| Handler name | Datatype |
|---|---|
BusinessHoursFinder |
Reference to BusinessHours template. |
Table 2. Required Attribute Metadata
| Name | Value | Description |
|---|---|---|
Path to Business Hours data card |
$attributeCode1:attributeCode2$ |
Reference attribute path to the Only one reference path can be defined. |
Table 3. Optional Attribute Metadata
| Name | Value | Description |
|---|---|---|
Default Business Hours template |
[template code] |
Code of template used as Only one template can be defined. |
Default Business Hours data card |
Name of data card used as default business hours, if reference path is not configured or cannot be used. | Only one data card can be defined. |
Hide input |
boolean | If this metadata is set to true and attributes input header and input field are hidden, nothing is shown in edit mode. |
Table of Contents