-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstruct_jira.go
70 lines (64 loc) · 2.03 KB
/
struct_jira.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package main
type jiraRemoteLink struct {
GlobalID string `json:"globalId"`
Relationship string `json:"relationship"`
Application jiraRemoteLinkApplication `json:"application"`
Object jiraRemoteLinkObject `json:"object"`
}
type jiraRemoteLinkApplication struct {
Type string `json:"type"`
Name string `json:"name"`
}
type jiraRemoteLinkObject struct {
URL string `json:"url"`
Title string `json:"title"`
Summary string `json:"summary"`
Icon jiraRemoteLinkObjectIcon `json:"icon"`
}
type jiraRemoteLinkObjectIcon struct {
URL string `json:"url16x16"`
Title string `json:"title"`
}
type jiraIssue struct {
ID string `json:"id"`
Key string `json:"key"`
Fields struct {
StatusCategoryChangeDate string `json:"statuscategorychangedate"`
IssueType struct {
Self string `json:"self"`
ID string `json:"id"`
Description string `json:"description"`
Name string `json:"name"`
SubTask bool `json:"subtask"`
} `json:"issuetype"`
Project struct {
ID string `json:"id"`
Self string `json:"self"`
Name string `json:"name"`
ProjectTypeKey string `json:"projectTypeKey"`
} `json:"project"`
Assignee struct {
Self string `json:"self"`
Name string `json:"name"`
Key string `json:"key"`
AccountID string `json:"accountId"`
EmailAddress string `json:"emailAddress"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
AccountType string `json:"accountType"`
} `json:"assignee"`
Updated string `json:"updated"`
Status struct {
ID string `json:"id"`
Self string `json:"self"`
Name string `json:"name"`
Description string `json:"description"`
} `json:"status"`
} `json:"fields"`
}
type jiraTransition struct {
Transition struct {
ID string `json:"id"`
} `json:"transition"`
}