/
jira_screen_scheme.go
50 lines (44 loc) · 2.08 KB
/
jira_screen_scheme.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
package models
type ScreenSchemePageScheme struct {
Self string `json:"self,omitempty"`
NextPage string `json:"nextPage,omitempty"`
MaxResults int `json:"maxResults,omitempty"`
StartAt int `json:"startAt,omitempty"`
Total int `json:"total,omitempty"`
IsLast bool `json:"isLast,omitempty"`
Values []*ScreenSchemeScheme `json:"values,omitempty"`
}
type ScreenSchemeScheme struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Screens *ScreenTypesScheme `json:"screens,omitempty"`
IssueTypeScreenSchemes *IssueTypeSchemePageScheme `json:"issueTypeScreenSchemes,omitempty"`
}
type ScreenTypesScheme struct {
Create int `json:"create,omitempty"`
Default int `json:"default,omitempty"`
View int `json:"view,omitempty"`
Edit int `json:"edit,omitempty"`
}
type IssueTypeSchemePageScheme struct {
Self string `json:"self,omitempty"`
NextPage string `json:"nextPage,omitempty"`
MaxResults int `json:"maxResults,omitempty"`
StartAt int `json:"startAt,omitempty"`
Total int `json:"total,omitempty"`
IsLast bool `json:"isLast,omitempty"`
Values []*IssueTypeSchemeScheme `json:"values,omitempty"`
}
type IssueTypeSchemeScheme struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
DefaultIssueTypeID string `json:"defaultIssueTypeId,omitempty"`
IsDefault bool `json:"isDefault,omitempty"`
}
type ScreenSchemePayloadScheme struct {
Screens *ScreenTypesScheme `json:"screens,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
}