mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-21 12:07:01 +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 {
|
type Transition struct {
|
||||||
ID string `json:"id" structs:"id"`
|
ID string `json:"id" structs:"id"`
|
||||||
Name string `json:"name" structs:"name"`
|
Name string `json:"name" structs:"name"`
|
||||||
|
To Status `json:"to" structs:"status"`
|
||||||
Fields map[string]TransitionField `json:"fields" structs:"fields"`
|
Fields map[string]TransitionField `json:"fields" structs:"fields"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,7 +314,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 +323,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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user