Skip to main content

Delete Comment

DeleteComment deletes a comment from a work item.

It calls DELETE https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{workItemId}/comments/{commentId}, where {workItemId} and {commentId} come from the Work Item Id and Comment Id fields.

The activity has four tabs: Configuration, Auth, Input, and Output.

Configuration

FieldRequiredDescription
NameOptionalName of the step, should be unique within this workflow.
DescriptionOptionalDescribe the purpose or function of this step.
Api VersionRequiredEnter the version of the API you want to use.
OrganizationOptionalEnter the name of the organization.
ProjectOptionalEnter the name of the project.
Work Item IdOptionalEnter the ID of the work item.
Comment IdOptionalEnter the ID of the comment.

Auth

FieldRequiredDescription
Auth TypeOptionalSelect the authentication method for the request. Options: No Auth, Basic, API Key, OAuth 2.
User NameOptionalUsername for Basic Authentication.
PasswordOptionalPassword for Basic Authentication.

Input

This activity is built on the REST Client, so the Input tab is the generic HTTP request rather than an Azure Boards-shaped payload.

FieldRequiredData TypeDescription
TargetRequiredObjectThe HTTP request.

Output

The activity returns an httpResponse object.

FieldData TypeDescription
status.codeIntegerNumeric HTTP status code.
status.messageStringShort message associated with the HTTP status.
headersObjectHTTP response headers.
bodyObjectParsed body of the response.
note

The output schema for this activity describes the response body only as a JSON Schema document, so no response fields are listed here.