WorkItemTrackingHttpClientBase.CreateWorkItemAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Indicate if you only want to validate the changes without saving the work item
- 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
Indicate if you only want to validate the changes without saving the work item
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.