mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-03-17 20:47:57 +02:00
New TransitionPayloadFields to set fields on transitions
This commit is contained in:
parent
d9a8021958
commit
006e865f6a
8
issue.go
8
issue.go
@ -313,7 +313,8 @@ type TransitionField struct {
|
||||
|
||||
// CreateTransitionPayload is used for creating new issue transitions
|
||||
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
|
||||
@ -321,6 +322,11 @@ type TransitionPayload struct {
|
||||
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
|
||||
// custom issue field
|
||||
type Option struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user