Skip to content

Commit

Permalink
Add Items and Custom to FieldSchema (#332)
Browse files Browse the repository at this point in the history
* Add Items and Custom to FieldSchema

* removing commas. oops

* Apply suggestions from code review

Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>

* formatting

Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>
  • Loading branch information
bossinc and andygrunwald committed Jan 9, 2021
1 parent 6a6c303 commit 3754d5a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions field.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ type Field struct {
Schema FieldSchema `json:"schema,omitempty" structs:"schema,omitempty"`
}

// FieldSchema represents a schema of a Jira field.
// Documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-fields/#api-rest-api-2-field-get
type FieldSchema struct {
Type string `json:"type,omitempty" structs:"type,omitempty"`
System string `json:"system,omitempty" structs:"system,omitempty"`
Type string `json:"type,omitempty" structs:"type,omitempty"`
Items string `json:"items,omitempty" structs:"items,omitempty"`
Custom string `json:"custom,omitempty" structs:"custom,omitempty"`
System string `json:"system,omitempty" structs:"system,omitempty"`
CustomID int64 `json:"customId,omitempty" structs:"customId,omitempty"`
}

// GetListWithContext gets all fields from Jira
Expand Down

0 comments on commit 3754d5a

Please sign in to comment.