mirror of
https://github.com/interviewstreet/go-jira.git
synced 2024-11-28 08:39:03 +02:00
Add Items and Custom to FieldSchema (#332)
* 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>
This commit is contained in:
parent
6a6c303c9a
commit
3754d5a5c6
9
field.go
9
field.go
@ -21,9 +21,14 @@ type Field struct {
|
|||||||
Schema FieldSchema `json:"schema,omitempty" structs:"schema,omitempty"`
|
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 FieldSchema struct {
|
||||||
Type string `json:"type,omitempty" structs:"type,omitempty"`
|
Type string `json:"type,omitempty" structs:"type,omitempty"`
|
||||||
System string `json:"system,omitempty" structs:"system,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
|
// GetListWithContext gets all fields from Jira
|
||||||
|
Loading…
Reference in New Issue
Block a user