Configure ability to copy a change request

You can configure the ability to copy a change request record and also configure the specific details that can be copied.

Before you begin

Role required: admin

About this task

You can configure the ability to copy a change. You can do the following:
  • Disable the ability to copy a change
  • Disable the ability to copy an attachment
  • Determine the components of the source change request that must be copied

Procedure

You can configure the ability to copy a change request in the following ways:
OptionDescription
Disable the ability to copy a change request

The ability to copy a change request is enabled by default.

To disable the ability to copy a change request:

  1. Set the Enable Copy Change feature (com.snc.change_request.enable_copy) system property to false.
Disable the ability to copy an attachment

The ability to copy an attachment to the change request is enabled by default.

To disable this ability:
  1. Set the Enable copying of attachments from the originating change (com.snc.change_request.attach.enable_copy) system property to false.
Disable the ability to copy the attachments to a change task in the Change Tasks related list of a change request

The ability to copy the attachments to a change task in the Change Tasks related list of a change request is enabled by default.

To disable this ability:
  1. Set the Enable copying of attachments from the originating change's related change tasks (com.snc.change_request.rl.change_task.attach.enable_copy) system property to false.
Note: If the ability to copy attachments is enabled, the attachment will appear on the new change request form only after the change request is saved.
Configure attributes to be copied

Common attributes such as columns in the change table are copied by default.

To configure the attributes to be copied:

  1. Edit the list of values in the List of attributes (comma-separated) that will be copied from the originating change (com.snc.change_request.copy.attributes) system property to remove or add more attributes. For example, to the Assigned to attribute from being copied, remove the assigned_to value from the List of attributes (comma-separated) that will be copied from the originating change property.
Configure related lists to be copied
The following related lists in a change record are copied by default:
  • Affected CIs
  • Impacted Services/CIs
  • Change Tasks
Note: You cannot configure any other standard or custom related lists on the change record.
To configure the lists to be copied:
  1. Edit the list of values in the Related lists (comma-separated) that will be copied from the originating change (com.snc.change_request.copy.related_lists) system property. For example, to stop copying the Change Tasks related list, remove the change_task value from the Related lists (comma-separated) that will be copied from the originating change property.
Configure attributes of related lists to be copied You can configure the attributes of related lists to be copied using appropriate system properties.

To configure the attributes of related lists to be copied:

  1. Navigate to the appropriate system property for a specific related list to configure the attributes that must be copied. The property name will be com.snc.change_request.copy.rl.<table name>.attributes.

    You can modify the following system properties to configure the attributes of related lists to be copied:

    Table 1. System properties for related list attributes
    Name of the Related list System property
    Change Tasks com.snc.change_request.copy.rl.change_task.attributes
    Affected CIs com.snc.change_request.copy.rl.task_ci.attributes
    Impacted Services/CIs com.snc.change_request.copy.rl.task_cmdb_ci_service.attributes
Customize the copy a change request ability
To further customize the ability to copy a change request:
  1. Modify the ChangeUtils script include, which extends the default ChangeUtilsSNC script include. For example, the ability to copy a change request is not available by default for standard changes. However, you can provide your own implementation of the isCopyRulesValid function in the ChangeUtils script include to override the default.
    Note: You must not modify the ChangeUtilsSNC script include.