Support for Icon Urls
This commit is contained in:
parent
3b87156ddb
commit
d5156c770c
2 changed files with 17 additions and 8 deletions
10
issue.go
10
issue.go
|
|
@ -2,16 +2,16 @@ package jkl
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
"encoding/json"
|
||||
"text/template"
|
||||
"sort"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/template"
|
||||
)
|
||||
|
||||
type Search struct {
|
||||
|
|
@ -20,6 +20,7 @@ type Search struct {
|
|||
|
||||
type IssueType struct {
|
||||
Name string `json:"name"`
|
||||
IconURL string `json:",omitempty"`
|
||||
Fields map[string]*FieldSpec
|
||||
}
|
||||
|
||||
|
|
@ -92,6 +93,7 @@ type CommentColl struct {
|
|||
|
||||
type Status struct {
|
||||
Name string
|
||||
IconURL string `json:",omitempty"`
|
||||
}
|
||||
|
||||
type TimeTracking struct {
|
||||
|
|
|
|||
9
jkl.go
9
jkl.go
|
|
@ -15,6 +15,11 @@ import (
|
|||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
func init() {
|
||||
x := false
|
||||
Verbose = &x
|
||||
}
|
||||
|
||||
var Verbose *bool
|
||||
var defaultIssue = &JiraIssue{}
|
||||
|
||||
|
|
@ -61,6 +66,7 @@ func GetCreateMeta(projectKey, issueType string) (*CreateMeta, error) {
|
|||
return nil, err
|
||||
}
|
||||
b, err := ioutil.ReadAll(resp.Body)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -134,7 +140,8 @@ func List(jql string) ([]*JiraIssue, error) {
|
|||
|
||||
func GetIssue(taskKey string) (*JiraIssue, error) {
|
||||
bootHttpClient()
|
||||
path := "api/2/issue/" + taskKey+"?expand=transitions,operations,editmeta"
|
||||
|
||||
path := "api/2/issue/" + taskKey + "?expand=transitions,operations,editmeta"
|
||||
resp, err := httpClient.Get(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue