We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a710c6c commit 2b6a4f4Copy full SHA for 2b6a4f4
project.go
@@ -27,11 +27,24 @@ type Project struct {
27
Name string `json:"name"`
28
Identifier string `json:"identifier"`
29
Description string `json:"description"`
30
+ Status int `json:"status"`
31
CreatedOn string `json:"created_on"`
32
UpdatedOn string `json:"updated_on"`
33
CustomFields []*CustomField `json:"custom_fields,omitempty"`
34
}
35
36
+func (p *Project) IsActive() bool {
37
+ return p.Status == 1
38
+}
39
+
40
+func (p *Project) IsClosed() bool {
41
+ return p.Status == 5
42
43
44
+func (p *Project) IsArchived() bool {
45
+ return p.Status == 9
46
47
48
type ProjectsFilter struct {
49
Filter
50
0 commit comments