42 lines
858 B
Go
42 lines
858 B
Go
package jira
|
|
|
|
const (
|
|
customFieldFormatOption = "option"
|
|
customFieldFormatArray = "array"
|
|
customFieldFormatNumber = "number"
|
|
customFieldFormatProject = "project"
|
|
)
|
|
|
|
type customField map[string]interface{}
|
|
|
|
type customFieldTypeNumber float64
|
|
|
|
type customFieldTypeNumberSet struct {
|
|
Set customFieldTypeNumber `json:"set"`
|
|
}
|
|
|
|
type customFieldTypeStringSet struct {
|
|
Set string `json:"set"`
|
|
}
|
|
|
|
type customFieldTypeOption struct {
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
type customFieldTypeOptionSet struct {
|
|
Set customFieldTypeOption `json:"set"`
|
|
}
|
|
|
|
type customFieldTypeOptionAddRemove struct {
|
|
Add *customFieldTypeOption `json:"add,omitempty"`
|
|
Remove *customFieldTypeOption `json:"remove,omitempty"`
|
|
}
|
|
|
|
type customFieldTypeProject struct {
|
|
Value string `json:"key"`
|
|
}
|
|
|
|
type customFieldTypeProjectSet struct {
|
|
Set customFieldTypeProject `json:"set"`
|
|
}
|