Skip to content

Commit da55d1b

Browse files
committed
feat(models): add support for parameters in workflow rule and trigger schemes
Added a new `Parameters` field to `WorkflowRuleConfigurationScheme` and `WorkflowTriggerScheme` to support additional configuration.
1 parent eabcf49 commit da55d1b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pkg/infra/models/jira_workflow.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ type WorkflowTransitionScheme struct {
5858
}
5959

6060
type 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

6566
type ConditionGroupConfigurationScheme struct {
@@ -80,8 +81,9 @@ type WorkflowTransitionLinkScheme struct {
8081
}
8182

8283
type WorkflowTriggerScheme struct {
83-
ID string `json:"id,omitempty"`
84-
RuleKey string `json:"ruleKey,omitempty"`
84+
ID string `json:"id,omitempty"`
85+
RuleKey string `json:"ruleKey"`
86+
Parameters map[string]any `json:"parameters"` // Required for transition trigger payload
8587
}
8688

8789
// WorkflowTransitionScreenScheme represents a screen associated with a transition in a workflow in Jira.

0 commit comments

Comments
 (0)