Add the `Issue` type

main
Jasper Bok 2023-07-14 19:03:22 +02:00
parent cde379f85b
commit 75c00825a8
1 changed files with 24 additions and 0 deletions

24
issue.go 100644
View File

@ -0,0 +1,24 @@
package jiraclient
import "fmt"
type Issue struct {
Id string `json:"id"`
Self string `json:"self"`
Key string `json:"key"`
Fields struct {
Summary string `json:"summary"`
Creator User `json:"creator"`
Reporter User `json:"reporter"`
Assignee User `json:"assignee"`
Description string `json:"description"`
Project Project `json:"project"`
Comment struct {
Comments []Comment `json:"comments"`
} `json:"comment"`
} `json:"fields"`
}
func (i Issue) String() string {
return fmt.Sprintf("%s %s", i.Key, i.Fields.Summary)
}