jira

package
v0.0.0-...-a981ce0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameConfigKey = "jira.username"
	TokenConfigKey    = "jira.token"
	APIConfigKey      = "jira.api_url"
	WebConfigKey      = "jira.api_url"
)

Config keys.

View Source
const (
	APIInstructionsURL = "https://confluence.atlassian.com/cloud/api-tokens-938839638.html"
	APIIssuePath       = "/rest/api/3/issue"
	APIUserPath        = "/rest/api/3/user"
	WebIssuePath       = "/browse"
)

URLs.

Variables

This section is empty.

Functions

func AssignUser

func AssignUser(accountID string, issue issues.Issue, c *Config) error

AssignUser assigns a user to the Jira issue.

func GetIssue

func GetIssue(issueID string, c *Config) (issues.Issue, error)

GetIssue returns the JSON representation of a Jira issue. It does this by making an HTTP request to the issue tracker API. Reference: https://stackoverflow.com/questions/12864302

func TransitionToCodeReview

func TransitionToCodeReview(issue issues.Issue, c *Config) error

TransitionToCodeReview updates the status Jira issue to "Code Review".

func TransitionToInProgress

func TransitionToInProgress(issue issues.Issue, c *Config) error

TransitionToInProgress updates the status Jira issue to "In Progress".

Types

type Config

type Config struct {
	Username  string
	AccountID string
	Token     string
	APIURL    string
	WebURL    string
}

Config contains Jira configuration values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL