Edit

Share via


WorkItemTrackingHttpClientBase.UpdateWorkItemAsync Method

Definition

Overloads

UpdateWorkItemAsync(JsonPatchDocument, Guid, Int32, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Updates a single work item.

UpdateWorkItemAsync(JsonPatchDocument, Int32, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Updates a single work item.

UpdateWorkItemAsync(JsonPatchDocument, String, Int32, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Updates a single work item.

UpdateWorkItemAsync(JsonPatchDocument, Guid, Int32, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Updates a single work item.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> UpdateWorkItemAsync (Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument document, Guid project, int id, Nullable<bool> validateOnly = null, Nullable<bool> bypassRules = null, Nullable<bool> suppressNotifications = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.UpdateWorkItemAsync : Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument * Guid * int * Nullable<bool> * Nullable<bool> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>

Parameters

document
Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument

The JSON Patch document representing the update

project
Guid

Project ID

id
Int32

The id of the work item to update

validateOnly
Nullable<Boolean>

Indicate if you only want to validate the changes without saving the work item

bypassRules
Nullable<Boolean>

Do not enforce the work item type rules on this update

suppressNotifications
Nullable<Boolean>

Do not fire any notifications for this change

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdateWorkItemAsync(JsonPatchDocument, Int32, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Updates a single work item.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> UpdateWorkItemAsync (Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument document, int id, Nullable<bool> validateOnly = null, Nullable<bool> bypassRules = null, Nullable<bool> suppressNotifications = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.UpdateWorkItemAsync : Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument * int * Nullable<bool> * Nullable<bool> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>

Parameters

document
Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument

The JSON Patch document representing the update

id
Int32

The id of the work item to update

validateOnly
Nullable<Boolean>

Indicate if you only want to validate the changes without saving the work item

bypassRules
Nullable<Boolean>

Do not enforce the work item type rules on this update

suppressNotifications
Nullable<Boolean>

Do not fire any notifications for this change

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdateWorkItemAsync(JsonPatchDocument, String, Int32, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Updates a single work item.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> UpdateWorkItemAsync (Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument document, string project, int id, Nullable<bool> validateOnly = null, Nullable<bool> bypassRules = null, Nullable<bool> suppressNotifications = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.UpdateWorkItemAsync : Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument * string * int * Nullable<bool> * Nullable<bool> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>

Parameters

document
Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument

The JSON Patch document representing the update

project
String

Project ID or project name

id
Int32

The id of the work item to update

validateOnly
Nullable<Boolean>

Indicate if you only want to validate the changes without saving the work item

bypassRules
Nullable<Boolean>

Do not enforce the work item type rules on this update

suppressNotifications
Nullable<Boolean>

Do not fire any notifications for this change

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to