Update Work Item Comment
Name
update_workitem_comment
Description
Update work item comment for a specific Work Item Id and Comment Id [API reference]
Related Tables
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_I4
|
int
|
False |
||
WorkItemId |
DT_I4
|
int
|
False |
||
Text |
DT_NTEXT
|
nvarchar(MAX)
|
False |
||
RenderedText |
DT_NTEXT
|
nvarchar(MAX)
|
False |
||
Format |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
CreatedDate |
DT_DBTIMESTAMP
|
datetime
|
False |
||
CreatedByUniqueName |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
CreatedById |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
CreatedByDisplayName |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
ModifiedDate |
DT_DBTIMESTAMP
|
datetime
|
False |
||
ModifiedByUniqueName |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
ModifiedById |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
ModifiedByDisplayName |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
Url |
DT_WSTR
|
nvarchar(1000)
|
1000 | False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
WorkItemId |
DT_I4
|
int
|
False |
||
Id |
DT_I4
|
int
|
False |
||
Text |
DT_NTEXT
|
nvarchar(MAX)
|
False |
Examples
SSIS
Use Azure DevOps Connector in API Source component to read data or in API Destination component to read/write data:
Update rows in 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:

ODBC application
Use these SQL queries in your ODBC application data source:
Update work item comment
SELECT * FROM update_workitem_comment
WHERE Id = 'abcd-1234-id'
AND WorkItemId = 'abcd-1234-workitemid'
WITH
(
"Project" = 'abcd-1234-project'
)
Update work item comment
UPDATE WorkItemComments
SET Text='Updating <strong>html comment</strong> - updated on <<FUN_NOW>>'
Where WorkItemId=6455 and Id=5284411
WITH(Project='ProductTesting')
update_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:
Update work item comment
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM update_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];
Update work item comment
DECLARE @MyQuery NVARCHAR(MAX) = 'UPDATE WorkItemComments
SET Text=''Updating <strong>html comment</strong> - updated on <<FUN_NOW>>''
Where WorkItemId=6455 and Id=5284411
WITH(Project=''ProductTesting'')';
EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];
update_workitem_comment
endpoint belongs to
WorkItemComments
table(s), and can therefore be used via those table(s).