AzureDevOpsAliases.

AzureDevOpsWorkItem(ICakeContext, AzureDevOpsWorkItemSettings) Method

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
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsWorkItemSettings 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.