Edit

Share via


WorkItemTrackingHttpClientBase.CreateWorkItemAsync Method

Definition

Overloads

CreateWorkItemAsync(JsonPatchDocument, Guid, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Creates a single work item.

CreateWorkItemAsync(JsonPatchDocument, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Creates a single work item.

CreateWorkItemAsync(JsonPatchDocument, Guid, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Creates a single work item.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> CreateWorkItemAsync (Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument document, Guid project, string type, Nullable<bool> validateOnly = null, Nullable<bool> bypassRules = null, Nullable<bool> suppressNotifications = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreateWorkItemAsync : Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument * Guid * string * 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 work item

project
Guid

Project ID

type
String

The work item type of the work item to create

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

CreateWorkItemAsync(JsonPatchDocument, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Creates a single work item.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> CreateWorkItemAsync (Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument document, string project, string type, Nullable<bool> validateOnly = null, Nullable<bool> bypassRules = null, Nullable<bool> suppressNotifications = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreateWorkItemAsync : Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument * string * string * 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 work item

project
String

Project ID or project name

type
String

The work item type of the work item to create

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