CMDB Task

Prasad_1362
Tera Contributor

Hello Community,

I have a requirement where any time a CMDB Task with the format CMDBTASK0001063 is created, it should be assigned to the "ABC" group for management. Currently, this task is assigned to the user administrator.

To address this, I found three policies in the "CMDB Data Management Policy Runtime Attributes." In one of these policies, there is a field named "Task Assignment Group," where I added the "ABC" group. However, I am unsure how this will affect the creation of CMDBTASK tasks.
CMDB Policy.png
image (71).png

I also found a scheduled job related to this, which is shown in the attached screenshot. I attempted to run the job, but the task was not created in the CMDB Data Manager. The job is named "CMDB Task Approval Subflow."

 

image (69).png
If anyone has insights or suggestions on how to proceed, your assistance would be greatly appreciated.

3 REPLIES 3

Tony Branton
ServiceNow Employee
ServiceNow Employee

The three policies you found are intended for retiring, archiving or deleting CI records that are dependent on CI records that are being retired, archived or deleted using Data Manager policies you create. These policies are intended to run automatically to avoid creating orphan CIs.  There's no need to separately approve tasks created by these policies since any approval would be performed in tasks generated by the retire, archive or delete policies you create.

 

Modifying these policies and associated jobs is not recommended.

 

It also looks as though you're working with the legacy version of Data Manager which has been replaced by a new version included in CMDB Workspace that was released on the Store in November 2023.  The new version provides more flexibility in policies for task assignment, allowing you to select:

  • User group field (when a reference field exists in the target table)
  • User field (when a reference field exists in the target table)
  • User group (any user group)
  • User (any user)

Screenshot below shows the assignment options:

Screenshot 2024-09-04 at 10.29.14 AM.png

 

It's strongly recommended to use the new version included in CMDB Workspace as the legacy version will be deprecated soon.

Prasad_1362
Tera Contributor

Hello @Tony Branton ,

Thank you for your response. I have a question about testing in the development instance: How can I create the CMDBTASK? I tried executing the scheduled job, but it didn’t work.

Thank you for your assistance.

 

Data Manager will create tasks for published policies, provided the policy is correctly configured and the target table contains relevant information (e.g. Managed by Field is populated).  If, for example, the Managed By Group was empty for records in a table, tasks are still created but are classified as "unassigned" and are only visible to users with the sn_cmdb_admin role. Unassigned tasks are visible to these users in the My Work section and from the Data Manager Overview page.

 

Note that scheduled jobs created by Data Manager for Attestation and Certification will use the policy name.