From 3754d5a5c632ee67cfcbd80f0fba8df83c9e4755 Mon Sep 17 00:00:00 2001 From: Andrew Hackmann <5140848+bossinc@users.noreply.github.com> Date: Sat, 9 Jan 2021 03:02:16 -0600 Subject: [PATCH] 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 * formatting Co-authored-by: Andy Grunwald --- field.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/field.go b/field.go index 2841673..b14057d 100644 --- a/field.go +++ b/field.go @@ -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