Skip to content

Commit ed4b39e

Browse files
authored
Merge pull request #77 from schubergphilis/fix-step-function-definition
fix: Jira close ticket step function definition update
2 parents 109e6fd + 82ef746 commit ed4b39e

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

files/step-function-artifacts/securityhub-findings-manager-orchestrator.json.tpl

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,16 @@
7878
}
7979
]
8080
},
81-
{
82-
"Variable": "$.detail.findings[0].Severity.Normalized",
83-
"NumericGreaterThanEquals": ${finding_severity_normalized}
84-
},
8581
%{~ if jira_autoclose_enabled }
8682
{
8783
"Or": [
8884
{
85+
"Comment": "CREATE JIRA TICKET: Requires severity >= threshold",
8986
"And": [
87+
{
88+
"Variable": "$.detail.findings[0].Severity.Normalized",
89+
"NumericGreaterThanEquals": ${finding_severity_normalized}
90+
},
9091
{
9192
"Variable": "$.detail.findings[0].Workflow.Status",
9293
"StringEquals": "NEW"
@@ -126,6 +127,7 @@
126127
]
127128
},
128129
{
130+
"Comment": "CLOSE JIRA TICKET: Works at ANY severity (ticket already exists)",
129131
"And": [
130132
{
131133
"Or": [
@@ -185,8 +187,16 @@
185187
}
186188
%{ else }
187189
{
188-
"Variable": "$.detail.findings[0].Workflow.Status",
189-
"StringEquals": "NEW"
190+
"And": [
191+
{
192+
"Variable": "$.detail.findings[0].Severity.Normalized",
193+
"NumericGreaterThanEquals": ${finding_severity_normalized}
194+
},
195+
{
196+
"Variable": "$.detail.findings[0].Workflow.Status",
197+
"StringEquals": "NEW"
198+
}
199+
]
190200
}
191201
%{ endif ~}
192202
],

0 commit comments

Comments
 (0)