OBLYTECH Logo
OBLYTECH Logo

CSM task plan templates: conditions, tracing and cloning

A CSM task plan template is a reusable set of tasks and records that the platform creates when the template is applied to a case. This guide covers how templates, items and conditions fit together, the Advanced conditions and record tracing added in the Brazil release, and how configurations and cloning keep templates consistent.

How the parts fit together

A template is a container for template items, and each item names the table where its record is created. The Task table [sn_customerservice_task] creates a case task, and the case table [sn_customerservice_case] creates a case record that can own child items. Conditions decide whether each item is created at all. For a broader walk through setting up case management, see how to configure CSM case management.

The Task Plan Templates plugin (com.sn_task_plan_templates) holds these tables:

Table What it holds
sn_task_plan_template Template records
sn_task_plan_template_item Template items, including child items
sn_task_plan_template_item_condition Conditions that decide whether an item is created
sn_task_plan_template_item_config Template item configurations that pre-set item fields
sn_task_plan_config Task plan template configurations
Task Plan Template Dependency Predecessor and successor links between items
sn_task_plan_template_document Document references attached to items

For the wider setup, see the Customer Service Management hub.

Roles and template states

Role What it allows
sn_task_plan.admin Create, view, update and delete across the template tables
sn_task_plan.creator Create templates, items and conditions
sn_task_plan.writer View and update templates, items and conditions
sn_task_plan.delete Delete templates, items and conditions
sn_task_plan.viewer View templates, items and conditions
sn_task_plan.report_viewer View task plan template reports
sn_task_plan.navigation_menu View the Task Plan Templates lists

Templates start in Draft, as do templates created with AI-assisted creation. Editing a Draft needs the creator role, and only Drafts can be deleted. Publishing needs the writer role and a confirmation. Once published, the Task Plan Template form becomes read-only, and the template keeps only two actions: Clone and Deactivate. For the wider role model across a CSM build, see the CSM roles, responsibilities and RACI guide.

Creating a template and its target record

Go to All > Task Plan Templates > All Task Plan Templates and select New. If at least one active entry exists in the sn_task_plan_config table, a Plan Configuration Picker opens first. Choosing a configuration pre-fills the Short description and Target record fields and loads its authoring playbook when one is defined.

The new template opens active and in Draft. Enter a Name and a Short description, optionally set the Target record, and select Submit. The Target record is optional. When one is set, the template applies whenever a matching case or task is created.

An agentic workflow can draft a template from an uploaded image, PDF or DOCX file that describes a process, and the new template is created in the Draft state. Running that workflow needs the sn_task_plan.creator role. A separate image agent, which returns the tasks and dependencies it extracts from the image as JSON, is available to the sn_task_plan.admin role.

Template items and their item actions

Each item has a Table, a link to its parent template, an Order that sets its place in the hierarchy, and a Parent field for child items. While the template is in Draft, each item offers four row-level actions: Edit, New Child, Clone (which needs the creator role and copies the item’s hierarchy, conditions and attachments) and Delete.

Action Effect
Edit Opens the item in a pop-up from the pencil icon; save with Update
New Child Creates a child item under the selected item
Clone Copies the item’s hierarchy, conditions and attachments; needs the creator role
Delete Removes the item with its child items, conditions and attachments after confirmation; needs the delete role

Conditions: simple checks and Advanced mode

Conditions are added from the Conditions tab of a template item, after the item exists. Select New, choose a Condition table, and build the test. Add Filter Condition adds a row with a field, an operator and value(s), and Add OR Clause adds an alternative set. By default the Condition table offers the target record table of the template or the parent item’s table.

Advanced mode points a condition at a table that shares a reference with a base table, instead of at the base table itself. Selecting the Advanced check box opens a Change Advanced settings? dialog: Confirm applies the change and Cancel keeps the previous setting.

Field What you choose
Base table The parent item’s table or the template’s target record table
Base table mapping field A reference field on the Base table; the Condition table list then shows tables sharing it
Condition table mapping field The field on the Condition table that matches the reference chosen above

With Advanced selected, all three fields are mandatory and the Condition table lists only the tables that share the chosen reference. Use it when the test depends on a related table rather than on the base table itself. For the wider concept behind reference fields, see reference qualifiers explained.

Configurations and cascading changes

A template item configuration (sn_task_plan_template_item_config) holds pre-set item values. It is created as a child of a task plan template configuration and uses the same fields as a template item. An item can select one only when its parent template has a value in its Template Configuration field and that configuration has item configuration records. When an item uses one, the Tracking fields section is hidden on the item form and filled from the configuration.

To create a configuration, go to All > Task Plan Templates > Administration > Task Plan Template Configuration. Enter a Short description, optionally a Target table and an icon that tells configurations apart in the picker, tick Active, and select Submit.

Saving a configuration changes records in one of two ways. A plain Save affects only templates and items created afterwards. Save and cascade also updates the draft templates and draft items linked to the configuration, while published ones are not affected. Save and cascade covers changes made on the configuration form only. To change one linked item, open that item’s own form, because the configuration’s related list does not allow it.

Tracing generated records to their source

Each template item has three identifier fields. They name the columns on a generated record that point back to the item, its template execution and its service organization.

Identifier field What it holds
Template item field identifier The reference back to the template item that created the record
Template execution field identifier The reference to the template execution the record was created under
Business organization field identifier The reference to the associated service organization; shown only when the Multi Case plugin (com.sn_multi_case_creation) is active

The Case and Case Task tables include the first two columns by default. For how a case differs from an incident record, see the case versus incident comparison.

When an item uses a template item configuration, these identifier fields are hidden on the item form and their values come from the configuration record.

Dependencies and document references

Task dependencies

A dependency is defined once, between two template items, in the Task Plan Template Dependency table. Each record holds a predecessor, a successor, a dependency type, a minimum and maximum lag, and assignment criteria. The assignment criteria offer Same agent and Same day, same agent.

Built-in validation rejects circular, self-referencing and duplicate dependencies. Dependencies can be added, edited or removed only while the template is in Draft, and removing one shows a confirmation that only the dependent tasks are affected.

The Apply Template action appears only after publication. Applying generates the task records and pairs each predecessor with its successor. For multi-organization generation, pairs form inside each business organization, so a predecessor is never linked to a successor from another organization. Pairing also works across tables, so a case task can depend on a case.

Document references

Documents can be attached to an item as PDFs, Word documents, PowerPoint files or images. Open a Draft template, select the item in the Template Items related list, and select New on the Task Plan Template Document related list.

Admins and writers can manage references, creators can do so only on Draft templates, and viewers can see them without changing them.

When a published template is applied, the references on each item are copied to the tasks it creates, so documents do not have to be produced again. Each record generated from the same item keeps those references. In the Brazil release, the multi-case generator also creates dependencies and document references for the records it produces.

Cloning templates and template items

To clone a template, open the Draft, Published or All list under All > Task Plan Templates, tick one record, and choose Clone from the Edit menu. The Clone button is disabled when more than one template is selected.

The copy is a new Draft with a unique record number. It is set active, added to the list and opened in a new tab. It carries the items and their hierarchy, item attachments, item conditions and child template items.

Cloning a single item requires the template to be in Draft. Before a cloned template goes live, see the testing and acceptance checklist. Select the item’s additional items icon on the Template items tab and choose Clone. The copy keeps the item’s hierarchy, conditions and attachments, and is added to the Template items tab. In the Brazil release, it also keeps any document references and dependencies that link the source item to other items.

Frequently asked questions

Why is the Tracking fields section missing on a template item?

The item uses a template item configuration, so the section is hidden and its values come from the configuration.

Does tracing by service organization need an extra plugin?

Yes. The business organization identifier appears only when the Multi Case plugin is active. The item and execution identifiers are included by default on the Case and Case Task tables.