Create a Work Item

Overview

Work items can be created manually, automatically from across Datadog, or programmatically with the API. There are two types of work items: standard and security. Work items created from security signals and Sensitive Data Scanner are automatically made security cases. The security work type has all the features of the standard work type, along with a mandatory field for specifying the reason for closing a work item (testing, false positive, or one time exception).

Manual work item creation

  1. Navigate to the Work Management page.
  2. Select a project to create the work item in. Note: A work item can only belong to a single project.
  3. Click New Work Item.
  4. Fill in a title for the work item.
  5. Select a work type.
  6. (Optional) Add a description.
  7. Click Create Work Item to complete.

You can also create work items manually from the following products:

ProductInstructions
Monitors- On a monitor status page, optionally scope the monitor to a time frame and specific monitor group(s). Then, under More Actions, click Create a work item.
- In Slack, click Create work item under a monitor notification.
Security signalsBeside a signal, in the Cases column, click the Create Case icon. Then, enter the work item details in the Create Case window that opens.
Error TrackingClick into an Error Tracking issue to open the side panel. Then, click Actions and select Add a work item.
WatchdogClick into an alert to open its side panel. Click the Actions dropdown menu and select Create a work item.
Event Management (raw events)Click into an event to open its side panel. Click the Actions dropdown menu and select Create a work item.
Cloud Cost ManagementClick into a cost recommendation to open its side panel. Then, click Create a work item.
Sensitive Data ScannerClick Create case next to a Sensitive Data Scanner issue.
SlackClick the Create Work Item button under a monitor notification in Slack.

Automatic work item creation

Configure the following products to automatically create work items:

ProductInstructions
MonitorsNavigate to the Project Settings page, click Integrations > Datadog Monitors, and click on the toggle to get your @case-<project_handle>.

When creating a monitor, include @case-{project_handle} in the Configure notifications and automations section. Work items are automatically created when the monitor transitions to a different status. To only create work items for certain monitor transitions, use conditional variables. As an example, to create work items only when a monitor triggers, wrap the @case mention with {{#is_alert}} and {{/is_alert}}.

Toggle on Auto-close work items when the monitor group resolves to reduce manual cleanup.
Event Management (Correlations)In Event Management, correlations configured to aggregate events from Datadog and third-party sources automatically create work items.
Workflow Automation1. In a new or existing workflow, add a step in the Workflow builder and search for “Case Management."
2. Select the Create Case action.
3. If the workflow is configured to run based on a monitor or security signal trigger, add the relevant workflow triggers and ensure that you’ve added the workflow handle to the desired resources. For more information, see Trigger a workflow.
Error TrackingIn Error Tracking, work items are automatically created when an issue is commented on or assigned.

Work types

Add work types when you are creating a work item. Not all work types are available for configuration between manual and automatic creation. For example, only Standard, Security and Change Request, Event Management types are available when creating work items manually.

To add and enable custom work types, see Work Management Customization.

Work TypeDescription
StandardA general-purpose work item for operational tasks, investigations, and more.
Change RequestUsed in change management workflows to track planned or approved changes.
Event ManagementIntegrated with the Event Management product to house correlated events.
SecurityUsed by security teams and products to manage investigations or alerts.
Error TrackingLinked to the Error Tracking product to track and remediate application issues.
Custom TypeAdd a custom work type. For more information, see Work Management Customization.

API

Create a work item through the API endpoint.

Note: This endpoint requires the cases_write authorization scope.

The Work Management API endpoints use case-management terminology, which reflects the product's previous name.

Further Reading