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:
commit
b7bd2385f1
9
issue.go
9
issue.go
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user