INNER CODE UNIT · Go
ProxyGetIssue
ankitpokhrel/jira-cli · api/client.go:110
func ProxyGetIssue(c *jira.Client, key string, opts ...filter.Filter) (*jira.Issue, error) {
var (
iss *jira.Issue
err error
)
it := viper.GetString("installation")
if it == jira.InstallationTypeLocal {
iss, err = c.GetIssueV2(key, opts...)
} else {
iss, err = c.GetIssue(key, opts...)
}
return iss, err
}
// ProxySearch uses either a v2 or v3 version of the Jira GET /search endpoint