1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-22 03:10:10 +02:00

Merge pull request #101 from omira-sch/fields-on-transitions

New TransitionPayloadFields to set fields on transitions
This commit is contained in:
Andy Grunwald 2018-01-11 21:48:30 +01:00 committed by GitHub
commit b7bd2385f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,6 +303,7 @@ type transitionResult struct {
type Transition struct {
ID string `json:"id" structs:"id"`
Name string `json:"name" structs:"name"`
To Status `json:"to" structs:"status"`
Fields map[string]TransitionField `json:"fields" structs:"fields"`
}
@ -313,7 +314,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 +323,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 {