summaryrefslogtreecommitdiff
path: root/app/models/issuable_severity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issuable_severity.rb')
-rw-r--r--app/models/issuable_severity.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/issuable_severity.rb b/app/models/issuable_severity.rb
index 35d03a544bd..928301e1da6 100644
--- a/app/models/issuable_severity.rb
+++ b/app/models/issuable_severity.rb
@@ -10,6 +10,14 @@ class IssuableSeverity < ApplicationRecord
critical: 'Critical - S1'
}.freeze
+ SEVERITY_QUICK_ACTION_PARAMS = {
+ unknown: %w(Unknown 0),
+ low: %w(Low S4 4),
+ medium: %w(Medium S3 3),
+ high: %w(High S2 2),
+ critical: %w(Critical S1 1)
+ }.freeze
+
belongs_to :issue
validates :issue, presence: true, uniqueness: true