/
jira_work_log.go
93 lines (82 loc) · 4.29 KB
/
jira_work_log.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package models
type WorklogOptionsScheme struct {
Notify bool
AdjustEstimate string
NewEstimate string
ReduceBy string
OverrideEditableFlag bool
Expand []string
}
type WorklogADFPayloadScheme struct {
Comment *CommentNodeScheme `json:"comment,omitempty"`
Visibility *IssueWorklogVisibilityScheme `json:"visibility,omitempty"`
Started string `json:"started,omitempty"`
TimeSpent string `json:"timeSpent,omitempty"`
TimeSpentSeconds int `json:"timeSpentSeconds,omitempty"`
}
type WorklogRichTextPayloadScheme struct {
Comment *CommentPayloadSchemeV2 `json:"comment,omitempty"`
Visibility *IssueWorklogVisibilityScheme `json:"visibility,omitempty"`
Started string `json:"started,omitempty"`
TimeSpent string `json:"timeSpent,omitempty"`
TimeSpentSeconds int `json:"timeSpentSeconds,omitempty"`
}
type ChangedWorklogPageScheme struct {
Since int `json:"since,omitempty"`
Until int `json:"until,omitempty"`
Self string `json:"self,omitempty"`
NextPage string `json:"nextPage,omitempty"`
LastPage bool `json:"lastPage,omitempty"`
Values []*ChangedWorklogScheme `json:"values,omitempty"`
}
type ChangedWorklogScheme struct {
WorklogID int `json:"worklogId,omitempty"`
UpdatedTime int `json:"updatedTime,omitempty"`
Properties []*ChangedWorklogPropertyScheme `json:"properties,omitempty"`
}
type ChangedWorklogPropertyScheme struct {
Key string `json:"key,omitempty"`
}
type IssueWorklogRichTextPageScheme struct {
StartAt int `json:"startAt,omitempty"`
MaxResults int `json:"maxResults,omitempty"`
Total int `json:"total,omitempty"`
Worklogs []*IssueWorklogRichTextScheme `json:"worklogs,omitempty"`
}
type IssueWorklogADFPageScheme struct {
StartAt int `json:"startAt,omitempty"`
MaxResults int `json:"maxResults,omitempty"`
Total int `json:"total,omitempty"`
Worklogs []*IssueWorklogADFScheme `json:"worklogs,omitempty"`
}
type IssueWorklogVisibilityScheme struct {
Type string `json:"type,omitempty"`
Value string `json:"value,omitempty"`
Identifier string `json:"identifier,omitempty"`
}
type IssueWorklogRichTextScheme struct {
Self string `json:"self,omitempty"`
Author *UserDetailScheme `json:"author,omitempty"`
UpdateAuthor *UserDetailScheme `json:"updateAuthor,omitempty"`
Comment string `json:"comment,omitempty"`
Updated string `json:"updated,omitempty"`
Visibility *IssueWorklogVisibilityScheme `json:"visibility,omitempty"`
Started string `json:"started,omitempty"`
TimeSpent string `json:"timeSpent,omitempty"`
TimeSpentSeconds int `json:"timeSpentSeconds,omitempty"`
ID string `json:"id,omitempty"`
IssueID string `json:"issueId,omitempty"`
}
type IssueWorklogADFScheme struct {
Self string `json:"self,omitempty"`
Author *UserDetailScheme `json:"author,omitempty"`
UpdateAuthor *UserDetailScheme `json:"updateAuthor,omitempty"`
Comment *CommentNodeScheme `json:"comment,omitempty"`
Updated string `json:"updated,omitempty"`
Visibility *IssueWorklogVisibilityScheme `json:"visibility,omitempty"`
Started string `json:"started,omitempty"`
TimeSpent string `json:"timeSpent,omitempty"`
TimeSpentSeconds int `json:"timeSpentSeconds,omitempty"`
ID string `json:"id,omitempty"`
IssueID string `json:"issueId,omitempty"`
}