mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-08-10 22:21:36 +02:00
New TransitionPayloadFields to set fields on transitions
This commit is contained in:
8
issue.go
8
issue.go
@@ -313,7 +313,8 @@ type TransitionField struct {
|
|||||||
|
|
||||||
// CreateTransitionPayload is used for creating new issue transitions
|
// CreateTransitionPayload is used for creating new issue transitions
|
||||||
type CreateTransitionPayload struct {
|
type CreateTransitionPayload struct {
|
||||||
Transition TransitionPayload `json:"transition" structs:"transition"`
|
Transition TransitionPayload `json:"transition" structs:"transition"`
|
||||||
|
Fields TransitionPayloadFields `json:"fields" structs:"fields"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TransitionPayload represents the request payload of Transition calls like DoTransition
|
// TransitionPayload represents the request payload of Transition calls like DoTransition
|
||||||
@@ -321,6 +322,11 @@ type TransitionPayload struct {
|
|||||||
ID string `json:"id" structs:"id"`
|
ID string `json:"id" structs:"id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TransitionPayloadFields represents the fields that can be set when executing a transition
|
||||||
|
type TransitionPayloadFields struct {
|
||||||
|
Resolution *Resolution `json:"resolution,omitempty" structs:"resolution,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// Option represents an option value in a SelectList or MultiSelect
|
// Option represents an option value in a SelectList or MultiSelect
|
||||||
// custom issue field
|
// custom issue field
|
||||||
type Option struct {
|
type Option struct {
|
||||||
|
Reference in New Issue
Block a user