Commit fb6cffe5 authored by David O'Regan's avatar David O'Regan Committed by Peter Leitzen

Allow time tracking in incidents

Allow incidents to use time tracking
in the sidebar and via the quick
actions
parent 1def732d
...@@ -182,7 +182,7 @@ module Issuable ...@@ -182,7 +182,7 @@ module Issuable
end end
def supports_time_tracking? def supports_time_tracking?
is_a?(TimeTrackable) && !incident? is_a?(TimeTrackable)
end end
def supports_severity? def supports_severity?
......
---
title: Allow time tracking in incidents
merge_request: 42965
author:
type: changed
...@@ -824,7 +824,7 @@ RSpec.describe Issuable do ...@@ -824,7 +824,7 @@ RSpec.describe Issuable do
where(:issuable_type, :supports_time_tracking) do where(:issuable_type, :supports_time_tracking) do
:issue | true :issue | true
:incident | false :incident | true
:merge_request | true :merge_request | true
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment