@@ -52,14 +52,15 @@ type WorkflowTransitionScheme struct {
5252 To * WorkflowStatusAndPortScheme `json:"to,omitempty"` // The status to which this transition goes.
5353 ToStatusReference string `json:"toStatusReference,omitempty"`
5454 TransitionScreen * WorkflowRuleConfigurationScheme `json:"transitionScreen,omitempty"`
55- Triggers []* WorkflowTriggerScheme `json:"triggers,omitempty"`
55+ Triggers []* WorkflowRuleConfigurationScheme `json:"triggers,omitempty"`
5656 Type string `json:"type,omitempty"` // The type of the transition.
5757 Validators []* WorkflowRuleConfigurationScheme `json:"validators,omitempty"`
5858}
5959
6060type WorkflowRuleConfigurationScheme struct {
61- ID string `json:"id,omitempty"`
62- RuleKey string `json:"ruleKey,omitempty"`
61+ ID string `json:"id,omitempty"`
62+ RuleKey string `json:"ruleKey"`
63+ Parameters map [string ]any `json:"parameters,omitempty"` // Not required for rule config payload
6364}
6465
6566type ConditionGroupConfigurationScheme struct {
@@ -79,11 +80,6 @@ type WorkflowTransitionLinkScheme struct {
7980 ToPort int `json:"toPort,omitempty"`
8081}
8182
82- type WorkflowTriggerScheme struct {
83- ID string `json:"id,omitempty"`
84- RuleKey string `json:"ruleKey,omitempty"`
85- }
86-
8783// WorkflowTransitionScreenScheme represents a screen associated with a transition in a workflow in Jira.
8884type WorkflowTransitionScreenScheme struct {
8985 ID string `json:"id,omitempty"` // The ID of the screen.
@@ -378,7 +374,7 @@ type TransitionUpdateDTOScheme struct {
378374 To * StatusReferenceAndPortScheme `json:"to,omitempty"` // To is the status to which this transition goes.
379375 ToStatusReference string `json:"toStatusReference,omitempty"` // ToStatusReference is the reference of the status to which this transition goes.
380376 TransitionScreen * WorkflowRuleConfigurationScheme `json:"transitionScreen,omitempty"` // TransitionScreen is the screen associated with the transition.
381- Triggers []* WorkflowTriggerScheme `json:"triggers,omitempty"` // Triggers is a list of triggers associated with the transition.
377+ Triggers []* WorkflowRuleConfigurationScheme `json:"triggers,omitempty"` // Triggers is a list of triggers associated with the transition.
382378 Type string `json:"type,omitempty"` // Type is the type of the transition.
383379 Validators []* WorkflowRuleConfigurationScheme `json:"validators,omitempty"` // Validators is a list of validators associated with the transition.
384380}
0 commit comments