Skip to content

Commit

Permalink
Update issue.go
Browse files Browse the repository at this point in the history
add custom item
  • Loading branch information
ljsandou authored Aug 25, 2021
1 parent 1aed937 commit c5601a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ type IssueFields struct {
Creator *User `json:"Creator,omitempty" structs:"Creator,omitempty"`
Reporter *User `json:"reporter,omitempty" structs:"reporter,omitempty"`
Components []*Component `json:"components,omitempty" structs:"components,omitempty"`
Customfield_10500 []*Custom10500 `json:"customfield_10500,omitempty" structs:"customfield_10500,omitempty"`
Status *Status `json:"status,omitempty" structs:"status,omitempty"`
Progress *Progress `json:"progress,omitempty" structs:"progress,omitempty"`
AggregateProgress *Progress `json:"aggregateprogress,omitempty" structs:"aggregateprogress,omitempty"`
Expand Down Expand Up @@ -210,6 +211,12 @@ func (i *IssueFields) UnmarshalJSON(data []byte) error {
return nil

}
//custom item
type Custom10500 struct {
Id string `json:"id,omitempty" structs:"id,omitempty"`
Self string `json:"self,omitempty" structs:"self,omitempty"`
Value string `json:"value,omitempty" structs:"value,omitempty"`
}

// IssueRenderedFields represents rendered fields of a Jira issue.
// Not all IssueFields are rendered.
Expand Down

0 comments on commit c5601a4

Please sign in to comment.