This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AzureDevOps.
Summary
Gets an Azure DevOps work item using the specified settings.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps - Containing Type
- AzureDevOpsAliases
Syntax
public static AzureDevOpsWorkItem AzureDevOpsWorkItem(this ICakeContext context, AzureDevOpsWorkItemSettings settings)
Examples
Get a work item from Azure DevOps Server:
var workItemSettings =
new AzureDevOpsWorkItemSettings(
new Uri("http://myserver:8080/defaultcollection"),
"MyProject",
42,
AzureDevOpsAuthenticationNtlm());
var workItem =
AzureDevOpsWorkItem(
workItemSettings);
Attributes
| Type | Description |
|---|---|
| Cake |
|
| Cake |
|
| Cake |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| settings | Azure |
Settings for getting the work item. |
Return Value
| Type | Description |
|---|---|
| AzureDevOpsWorkItem | Description of the work item.
Returns null if work item could not be found and
ThrowExceptionIfWorkItemCouldNotBeFound is set to false. |
