Optional
options: IRequestOptionsStatic
Readonly
RESOURCE_Comment create request.
Project ID or project name
Id of a work item.
Optional
apiVersion: stringUploads an attachment.
Content to upload
Optional
fileName: stringThe name of the file
Optional
uploadType: stringAttachment upload type: Simple or Chunked
Optional
project: stringProject ID or project name
Optional
areaPath: stringTarget project Area Path
Adds a new reaction to a comment.
Project ID or project name
WorkItem ID
Comment ID
Type of the reaction
Create a new field.
New field definition
Optional
project: stringProject ID or project name
Create new or update an existing classification node.
Node to create or update.
Project ID or project name
Structure group of the classification node, area or iteration.
Optional
path: stringPath of the classification node.
Creates a query, or moves a query.
The query to create.
Project ID or project name
The parent id or path under which the query is to be created.
Optional
validateWiqlOnly: booleanIf you only want to validate your WIQL query without actually creating one, set it to true. Default is false.
Optional
apiVersion: stringCreates a template
Template contents
The team context for the operation
Creates a single work item.
The JSON Patch document representing the work item
Project ID or project name
The work item type of the work item to create
Optional
validateOnly: booleanIndicate if you only want to validate the changes without saving the work item
Optional
bypassRules: booleanDo not enforce the work item type rules on this update
Optional
suppressNotifications: booleanDo not fire any notifications for this change
Optional
expand: WorkItemExpandThe expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
Delete an existing classification node.
Project ID or project name
Structure group of the classification node, area or iteration.
Optional
path: stringPath of the classification node.
Optional
reclassifyId: numberId of the target classification node for reclassification.
Delete a comment on a work item.
Project ID or project name
Id of a work item.
Deletes an existing reaction on a comment.
Project ID or project name
WorkItem ID
Comment ID
Type of the reaction
Deletes the field. To undelete a filed, see "Update Field" API.
Field simple name or reference name
Optional
project: stringProject ID or project name
Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder.
Project ID or project name
ID or path of the query or folder to delete.
Project ID or project name
Deletes the template with given id
The team context for the operation
Template id
Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. WARNING: If the destroy parameter is set to true, work items deleted by this command will NOT go to recycle-bin and there is no way to restore/recover them after deletion. It is recommended NOT to use this parameter. If you do, please use this parameter with extreme caution.
ID of the work item to be deleted
Optional
project: stringProject ID or project name
Optional
destroy: booleanOptional parameter, if set to true, the work item is deleted permanently. Please note: the destroy action is PERMANENT and cannot be undone.
Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.
ID of the work item to be destroyed permanently
Optional
project: stringProject ID or project name
Export work item type
Optional
project: stringProject ID or project name
Optional
type: stringOptional
exportGlobalLists: booleanINTERNAL ONLY: USED BY ACCOUNT MY WORK PAGE. This returns Doing, Done, Follows and activity work items details.
Optional
queryOption: QueryOptionDownloads an attachment.
Attachment ID
Optional
fileName: stringName of the file
Optional
project: stringProject ID or project name
Optional
download: booleanIf set to
Downloads an attachment.
Attachment ID
Optional
fileName: stringName of the file
Optional
project: stringProject ID or project name
Optional
download: booleanIf set to
Gets the classification node for a given node path.
Project ID or project name
Structure group of the classification node, area or iteration.
Optional
path: stringPath of the classification node.
Optional
depth: numberDepth of children to fetch.
Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project.
Project ID or project name
Comma separated integer classification nodes ids. It's not required, if you want root nodes.
Optional
depth: numberDepth of children to fetch.
Optional
errorPolicy: ClassificationNodesErrorPolicyFlag to handle errors in getting some nodes. Possible options are Fail and Omit.
Returns a work item comment.
Project ID or project name
Id of a work item to get the comment.
Id of the comment to return.
Optional
includeDeleted: booleanSpecify if the deleted comment should be retrieved.
Optional
expand: CommentExpandOptionsSpecifies the additional data retrieval options for work item comments.
Gets reactions of a comment.
Project ID or project name
WorkItem ID
Comment ID
Returns a list of work item comments, pageable.
Project ID or project name
Id of a work item to get comments for.
Optional
top: numberMax number of comments to return.
Optional
continuationToken: stringUsed to query for the next page of comments.
Optional
includeDeleted: booleanSpecify if the deleted comments should be retrieved.
Optional
expand: CommentExpandOptionsSpecifies the additional data retrieval options for work item comments.
Optional
order: CommentSortOrderOrder in which the comments should be returned.
Returns a list of work item comments by ids.
Project ID or project name
Id of a work item to get comments for.
Comma-separated list of comment ids to return.
Optional
includeDeleted: booleanSpecify if the deleted comments should be retrieved.
Optional
expand: CommentExpandOptionsSpecifies the additional data retrieval options for work item comments.
Project ID or project name
Project ID or project name
Gets a deleted work item from Recycle Bin.
ID of the work item to be returned
Optional
project: stringProject ID or project name
Gets the work items from the recycle bin, whose IDs have been specified in the parameters
Comma separated list of IDs of the deleted work items to be returned
Optional
project: stringProject ID or project name
Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin.
Optional
project: stringProject ID or project name
Get users who reacted on the comment.
Project ID or project name
WorkItem ID.
Comment ID.
Type of the reaction.
Optional
top: numberOptional
skip: numberGets information on a specific field.
Field simple name or reference name
Optional
project: stringProject ID or project name
Returns information for all fields. The project ID/name parameter is optional.
Optional
project: stringProject ID or project name
Optional
expand: GetFieldsExpandUse ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included.
Gets the root queries and their children
Project ID or project name
Optional
expand: QueryExpandInclude the query string (wiql), clauses, query result columns, and sort options in the results.
Optional
depth: numberIn the folder of queries, return child queries and folders to this depth.
Optional
includeDeleted: booleanInclude deleted queries and folders
Gets a list of queries by ids (Maximum 1000)
Project ID or project name
Retrieves an individual query and its children
Project ID or project name
ID or path of the query.
Optional
expand: QueryExpandInclude the query string (wiql), clauses, query result columns, and sort options in the results.
Optional
depth: numberIn the folder of queries, return child queries and folders to this depth.
Optional
includeDeleted: booleanInclude deleted queries and folders
Optional
useIsoDateFormat: booleanDateTime query clauses will be formatted using a ISO 8601 compliant format
Gets recent work item activities
INTERNAL ONLY: USED BY ACCOUNT MY WORK PAGE.
Gets the work item relation type definition.
The relation name
Gets the work item relation types.
Get a batch of work item links
Optional
project: stringProject ID or project name
Optional
linkTypes: string[]A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types.
Optional
types: string[]A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types.
Optional
continuationToken: stringSpecifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links.
Optional
startDateTime: DateDate/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter.
Returns a fully hydrated work item for the requested revision
Optional
expand: WorkItemExpandOptional
project: stringProject ID or project name
Returns the list of fully hydrated work item revisions, paged.
Optional
top: numberOptional
skip: numberOptional
expand: WorkItemExpandOptional
project: stringProject ID or project name
Gets root classification nodes under the project.
Project ID or project name
Optional
depth: numberDepth of children to fetch.
Project ID or project name
Project ID or project name
Gets the template with specified id
The team context for the operation
Template Id
Gets template
The team context for the operation
Optional
workitemtypename: stringOptional, When specified returns templates for given Work item type.
Returns a single update for a work item
Optional
project: stringProject ID or project name
Returns a the deltas between work item revisions
Optional
top: numberOptional
skip: numberOptional
project: stringProject ID or project name
Get the list of work item tracking outbound artifact link types.
Returns a single work item.
The work item id
Optional
fields: string[]Comma-separated list of requested fields
Optional
asOf: DateAsOf UTC date time string
Optional
expand: WorkItemExpandThe expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
Optional
project: stringProject ID or project name
Get a work item icon given the friendly name and icon color.
The name of the icon
Optional
color: stringThe 6-digit hex color for the icon
Optional
v: numberThe version of the icon (used only for cache invalidation)
Get a list of all work item icons.
Get a work item icon given the friendly name and icon color.
The name of the icon
Optional
color: stringThe 6-digit hex color for the icon
Optional
v: numberThe version of the icon (used only for cache invalidation)
Get a work item icon given the friendly name and icon color.
The name of the icon
Optional
color: stringThe 6-digit hex color for the icon
Optional
v: numberThe version of the icon (used only for cache invalidation)
Returns the next state on the given work item IDs.
list of work item ids
Optional
action: stringpossible actions. Currently only supports checkin
Returns a list of work items (Maximum 200)
The comma-separated list of requested work item ids. (Maximum 200 ids allowed).
Optional
fields: string[]Comma-separated list of requested fields
Optional
asOf: DateAsOf UTC date time string
Optional
expand: WorkItemExpandThe expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
Optional
errorPolicy: WorkItemErrorPolicyThe flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}.
Optional
project: stringProject ID or project name
Gets work items for a list of work item ids (Maximum 200)
Optional
project: stringProject ID or project name
INTERNAL ONLY: It will be used for My account work experience. Get the work item type state color for multiple projects
Returns a single work item from a template.
Project ID or project name
The work item type name
Optional
fields: stringComma-separated list of requested fields
Optional
asOf: DateAsOf UTC date time string
Optional
expand: WorkItemExpandThe expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
Returns a work item type definition.
Project ID or project name
Work item type name
Get all work item type categories.
Project ID or project name
Get specific work item type category by name.
Project ID or project name
The category name
INTERNAL ONLY: It is used for color and icon providers. Get the wit type color for multiple projects
INTERNAL ONLY: It will be used for My account work experience. Get the wit type color for multiple projects
Get a list of fields for a work item type with detailed references.
Project ID or project name
Work item type.
Optional
expand: WorkItemTypeFieldsExpandLevelExpand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties.
Get a field for a work item type with detailed references.
Project ID or project name
Work item type.
Optional
expand: WorkItemTypeFieldsExpandLevelExpand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties.
Returns the list of work item types
Project ID or project name
Returns the state names and colors for a work item type.
Project ID or project name
The state name
Migrates a project to a different process within the same OOB type. For example, you can only migrate a project from agile/custom-agile to agile/custom-agile.
Project ID or project name
Gets the results of the query given the query ID.
The query ID.
Optional
teamContext: TeamContextThe team context for the operation
Optional
timePrecision: booleanWhether or not to use time precision.
Optional
top: numberThe max number of results to return.
Gets the results of the query given its WIQL.
The query containing the WIQL.
Optional
teamContext: TeamContextThe team context for the operation
Optional
timePrecision: booleanWhether or not to use time precision.
Optional
top: numberThe max number of results to return.
Queries work items linked to a given list of artifact URI.
Defines a list of artifact URI for querying work items.
Optional
project: stringProject ID or project name
Optional
project: stringProject ID or project name
Optional
continuationToken: stringOptional
maxPageSize: numberGet a batch of work item revisions with the option of including deleted items
Optional
project: stringProject ID or project name
Optional
fields: string[]A list of fields to return in work item revisions. Omit this parameter to get all reportable fields.
Optional
types: string[]A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types.
Optional
continuationToken: stringSpecifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions.
Optional
startDateTime: DateDate/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter.
Optional
includeIdentityRef: booleanReturn an identity reference instead of a string value for identity fields.
Optional
includeDeleted: booleanSpecify if the deleted item should be returned.
Optional
includeTagRef: booleanSpecify if the tag objects should be returned for System.Tags field.
Optional
includeLatestOnly: booleanReturn only the latest revisions of work items, skipping all historical revisions
Optional
expand: ReportingRevisionsExpandReturn all the fields in work item revisions, including long text fields which are not returned by default
Optional
includeDiscussionChangesOnly: booleanReturn only the those revisions of work items, where only history field was changed
Optional
maxPageSize: numberThe maximum number of results to return in this batch
Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit.
An object that contains request settings: field filter, type filter, identity format
Optional
project: stringProject ID or project name
Optional
continuationToken: stringSpecifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions.
Optional
startDateTime: DateDate/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter.
Optional
expand: ReportingRevisionsExpandReplace template contents
Template contents to replace with
The team context for the operation
Template id
Restores the deleted work item from Recycle Bin.
Paylod with instructions to update the IsDeleted flag to false
ID of the work item to be restored
Optional
project: stringProject ID or project name
Searches all queries the user has access to in the current project
Project ID or project name
The text to filter the queries with.
Optional
top: numberThe number of queries to return (Default is 50 and maximum is 200).
Optional
expand: QueryExpandOptional
includeDeleted: booleanInclude deleted queries and folders
RESTful method to send mail for selected/queried work items.
Optional
project: stringProject ID or project name
Update an existing classification node.
Node to create or update.
Project ID or project name
Structure group of the classification node, area or iteration.
Optional
path: stringPath of the classification node.
Update a comment on a work item.
Comment update request.
Project ID or project name
Id of a work item.
Update a field.
Payload contains desired value of the field's properties
Name/reference name of the field to be updated
Optional
project: stringProject ID or project name
Update a query or a folder. This allows you to update, rename and move queries and folders.
The query to update.
Project ID or project name
The ID or path for the query to update.
Optional
undeleteDescendants: booleanUndelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants.
Project ID or project name
Updates a single work item.
The JSON Patch document representing the update
The id of the work item to update
Optional
project: stringProject ID or project name
Optional
validateOnly: booleanIndicate if you only want to validate the changes without saving the work item
Optional
bypassRules: booleanDo not enforce the work item type rules on this update
Optional
suppressNotifications: booleanDo not fire any notifications for this change
Optional
expand: WorkItemExpandThe expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
Add/updates a work item type
Optional
project: stringProject ID or project name
Add a comment on a work item.