/
jira_field.go
56 lines (50 loc) · 2.24 KB
/
jira_field.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
package models
type IssueFieldScheme struct {
ID string `json:"id,omitempty"`
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
Custom bool `json:"custom,omitempty"`
Orderable bool `json:"orderable,omitempty"`
Navigable bool `json:"navigable,omitempty"`
Searchable bool `json:"searchable,omitempty"`
ClauseNames []string `json:"clauseNames,omitempty"`
Scope *TeamManagedProjectScopeScheme `json:"scope,omitempty"`
Schema *IssueFieldSchemaScheme `json:"schema,omitempty"`
Description string `json:"description,omitempty"`
IsLocked bool `json:"isLocked,omitempty"`
SearcherKey string `json:"searcherKey,omitempty"`
ScreensCount int `json:"screensCount,omitempty"`
ContextsCount int `json:"contextsCount,omitempty"`
LastUsed *IssueFieldLastUsedScheme `json:"lastUsed,omitempty"`
}
type IssueFieldSchemaScheme struct {
Type string `json:"type,omitempty"`
Items string `json:"items,omitempty"`
System string `json:"system,omitempty"`
Custom string `json:"custom,omitempty"`
CustomID int `json:"customId,omitempty"`
}
type IssueFieldLastUsedScheme struct {
Type string `json:"type,omitempty"`
Value string `json:"value,omitempty"`
}
type FieldSearchPageScheme struct {
MaxResults int `json:"maxResults,omitempty"`
StartAt int `json:"startAt,omitempty"`
Total int `json:"total,omitempty"`
IsLast bool `json:"isLast,omitempty"`
Values []*IssueFieldScheme `json:"values,omitempty"`
}
type FieldSearchOptionsScheme struct {
Types []string
IDs []string
Query string
OrderBy string
Expand []string
}
type CustomFieldScheme struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
FieldType string `json:"type,omitempty"`
SearcherKey string `json:"searcherKey,omitempty"`
}