File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
files/step-function-artifacts Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 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"
126127 ]
127128 },
128129 {
130+ " Comment" : " CLOSE JIRA TICKET: Works at ANY severity (ticket already exists)" ,
129131 " And" : [
130132 {
131133 " Or" : [
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 ],
You can’t perform that action at this time.
0 commit comments