Azure DevOps Connector
Documentation
Version: 2
Documentation
Endpoint

Delete Work Item Comment


Name

delete_workitem_comment

Description

Delete work item comment for a specific Work Item Id and Comment Id [API reference]

Related Tables

WorkItemComments

Parameters

Parameter Label Required Options Description
Id Id YES Comment Id
WorkItemId WorkItemId YES WorkItem Id for which you like to get comments
Project Project Name YES The Name of the project.
api-version api-version NO For this API you must set 7.0-preview for now

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_I4 int False
WorkItemId DT_I4 int False
Status DT_WSTR nvarchar(4000) 4000 False
StatusCode DT_I4 int False
If the column you are looking for is missing, consider customizing Azure DevOps Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
WorkItemId DT_I4 int False
Id DT_I4 int False
Required columns that you need to supply are bolded.

Examples

SSIS

Use Azure DevOps Connector in API Source component to read data or in API Destination component to read/write data:

Delete rows from WorkItemComments table using API Destination

This Endpoint belongs to WorkItemComments table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

Azure DevOps
WorkItemComments
Delete
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete work item comment

SELECT * FROM delete_workitem_comment
WHERE Id = 'abcd-1234-id'
AND WorkItemId = 'abcd-1234-workitemid'
WITH
(
    "Project" = 'abcd-1234-project'
)

Delete a specific work item by its Id

DELETE FROM WorkItemComments WHERE WorkItemId=6455 and Id=5284411

delete_workitem_comment endpoint belongs to WorkItemComments table(s), and can therefore be used via those table(s).

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Delete work item comment

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM delete_workitem_comment
WHERE Id = ''abcd-1234-id''
AND WorkItemId = ''abcd-1234-workitemid''
WITH
(
    "Project" = ''abcd-1234-project''
)';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

Delete a specific work item by its Id

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM WorkItemComments WHERE WorkItemId=6455 and Id=5284411';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

delete_workitem_comment endpoint belongs to WorkItemComments table(s), and can therefore be used via those table(s).