C# Class DBTek.BugGuardian.Helpers.WorkItemsHelper

Show file Open project: n3wt0n/BugGuardian

Public Methods

Method Description
CreateNewWorkItem ( WorkItemType workItemType, Exception ex, Account account, string message, IEnumerable tags ) : Task

Create a new Work Item with the given values

GetExistentWorkItemId ( string exceptionHash, WorkItemType workItemType, Account account ) : Task

Check if a WorkItem of the given Type and with the same hash already exists on VSTS/TFS

UpdateWorkItem ( WorkItemData workItemData, Account account ) : Task

Updates the Title and the History of an Existing WorkItem

Method Details

CreateNewWorkItem() public static method

Create a new Work Item with the given values
public static CreateNewWorkItem ( WorkItemType workItemType, Exception ex, Account account, string message, IEnumerable tags ) : Task
workItemType WorkItemType The WorkItem Type (Bug or Task)
ex System.Exception The exception to report
account DBTek.BugGuardian.Entities.Account Account info for VSTS/TFS
message string Optional message to be added to the WorkItem
tags IEnumerable Optional tags (list separated by comma) to be added to the WorkItem
return Task

GetExistentWorkItemId() public static method

Check if a WorkItem of the given Type and with the same hash already exists on VSTS/TFS
public static GetExistentWorkItemId ( string exceptionHash, WorkItemType workItemType, Account account ) : Task
exceptionHash string The MD5 hash of the exception to report
workItemType WorkItemType The WorkItem Type (Bug or Task)
account DBTek.BugGuardian.Entities.Account Account info for VSTS/TFS
return Task

UpdateWorkItem() public static method

Updates the Title and the History of an Existing WorkItem
public static UpdateWorkItem ( WorkItemData workItemData, Account account ) : Task
workItemData DBTek.BugGuardian.Entities.WorkItemData The WorkItem to update
account DBTek.BugGuardian.Entities.Account Account info for VSTS/TFS
return Task