Documentation
¶
Index ¶
- func GetAreaDisplayName(path string) string
- type Client
- func (c *Client) AssignWorkItem(id int, userEmail string) error
- func (c *Client) CreateComment(workItemID int, text string) error
- func (c *Client) CreateParentWorkItem(...) (int, error)
- func (c *Client) CreateWorkItem(workItemType, title, description string, parentID int, ...) (int, error)
- func (c *Client) DeleteComment(workItemID, commentID int) error
- func (c *Client) DeleteWorkItem(id int) error
- func (c *Client) GetAllWorkItemTypeStates() (map[string][]models.WorkItemStateInfo, error)
- func (c *Client) GetAreas() ([]models.Area, error)
- func (c *Client) GetComments(workItemID int) ([]models.Comment, error)
- func (c *Client) GetCurrentIteration() (*models.Iteration, error)
- func (c *Client) GetIterations() ([]models.Iteration, error)
- func (c *Client) GetTeamMembers() ([]models.TeamMember, error)
- func (c *Client) GetWorkItem(id int) (*models.WorkItem, error)
- func (c *Client) GetWorkItemTypeStates(workItemType string) ([]models.WorkItemStateInfo, error)
- func (c *Client) GetWorkItemTypes() ([]string, error)
- func (c *Client) GetWorkItems(ids []string) ([]models.WorkItem, error)
- func (c *Client) Organization() string
- func (c *Client) Project() string
- func (c *Client) QueryWorkItems(sprintPath, state, assigned, areaPath string) ([]models.WorkItem, error)
- func (c *Client) Team() string
- func (c *Client) UpdateComment(workItemID, commentID int, text string) error
- func (c *Client) UpdatePBI(id int, title, description string, priority int, effort float64, tags []string, ...) error
- func (c *Client) UpdateWorkItem(id int, newTitle, description string) error
- func (c *Client) UpdateWorkItemState(id int, newState string) error
- func (c *Client) UpdateWorkItemTitle(id int, newTitle string) error
- func (c *Client) WorkItemWebURL(id int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAreaDisplayName ¶
GetAreaDisplayName returns a shortened display name for an area
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Azure DevOps API client
func (*Client) AssignWorkItem ¶
AssignWorkItem assigns a work item to a user Pass empty string to unassign
func (*Client) CreateComment ¶
CreateComment creates a new comment on a work item
func (*Client) CreateParentWorkItem ¶
func (c *Client) CreateParentWorkItem(workItemType, title, description, acceptanceCriteria, state, iterationPath, areaPath, assignedTo string, effort float64, priority int, tags []string, defectCause string) (int, error)
CreateParentWorkItem creates a parent work item (PBI or Bug) with state and effort
func (*Client) CreateWorkItem ¶
func (c *Client) CreateWorkItem(workItemType, title, description string, parentID int, areaPath, iterationPath, assignedTo string) (int, error)
CreateWorkItem creates a new work item
func (*Client) DeleteComment ¶
DeleteComment deletes a comment from a work item
func (*Client) DeleteWorkItem ¶
DeleteWorkItem deletes a work item
func (*Client) GetAllWorkItemTypeStates ¶
func (c *Client) GetAllWorkItemTypeStates() (map[string][]models.WorkItemStateInfo, error)
GetAllWorkItemTypeStates fetches states for all work item types
func (*Client) GetComments ¶
GetComments fetches comments for a work item
func (*Client) GetCurrentIteration ¶
GetCurrentIteration returns the current iteration
func (*Client) GetIterations ¶
GetIterations fetches all iterations (sprints) for the team
func (*Client) GetTeamMembers ¶
func (c *Client) GetTeamMembers() ([]models.TeamMember, error)
GetTeamMembers fetches all members of the configured team
func (*Client) GetWorkItem ¶
GetWorkItem fetches a single work item by ID
func (*Client) GetWorkItemTypeStates ¶
func (c *Client) GetWorkItemTypeStates(workItemType string) ([]models.WorkItemStateInfo, error)
GetWorkItemTypeStates fetches all states for a specific work item type
func (*Client) GetWorkItemTypes ¶
GetWorkItemTypes fetches all work item types for the project
func (*Client) GetWorkItems ¶
GetWorkItems fetches multiple work items by ID
func (*Client) Organization ¶
Organization returns the organization name
func (*Client) QueryWorkItems ¶
func (c *Client) QueryWorkItems(sprintPath, state, assigned, areaPath string) ([]models.WorkItem, error)
QueryWorkItems queries work items using WIQL
func (*Client) UpdateComment ¶
UpdateComment updates an existing comment on a work item
func (*Client) UpdatePBI ¶
func (c *Client) UpdatePBI(id int, title, description string, priority int, effort float64, tags []string, assignedTo string) error
UpdatePBI updates a PBI's title, description, priority, effort, tags, and assigned user
func (*Client) UpdateWorkItem ¶
UpdateWorkItem updates a work item's title and/or description
func (*Client) UpdateWorkItemState ¶
UpdateWorkItemState updates a work item's state
func (*Client) UpdateWorkItemTitle ¶
UpdateWorkItemTitle updates a work item's title
func (*Client) WorkItemWebURL ¶
WorkItemWebURL returns the web URL for a work item