diff --git a/app/models/zendesk/ticket/content_change_request_ticket.rb b/app/models/zendesk/ticket/content_change_request_ticket.rb index 31e0c130d..c4c5d8e50 100644 --- a/app/models/zendesk/ticket/content_change_request_ticket.rb +++ b/app/models/zendesk/ticket/content_change_request_ticket.rb @@ -28,6 +28,20 @@ def custom_fields def comment_snippets snippets = [ + Zendesk::LabelledSnippet.new( + on: @request, + field: :reason_for_change, + label: "Reason for request", + ), + Zendesk::LabelledSnippet.new( + on: @request, + field: :subject_area, + label: "Subject area", + ), + Zendesk::LabelledSnippet.new(on: self, field: :needed_by_date, label: "Deadline date"), + Zendesk::LabelledSnippet.new(on: self, field: :needed_by_time, label: "Deadline time"), + Zendesk::LabelledSnippet.new(on: self, field: :not_before_date, label: "Do not publish before date"), + Zendesk::LabelledSnippet.new(on: self, field: :not_before_time, label: "Do not publish before time"), Zendesk::LabelledSnippet.new( on: @request, field: :url, diff --git a/spec/features/content_change_requests_spec.rb b/spec/features/content_change_requests_spec.rb index 237f05b42..cde2cdf92 100644 --- a/spec/features/content_change_requests_spec.rb +++ b/spec/features/content_change_requests_spec.rb @@ -20,7 +20,25 @@ "tags" => %w[govt_form content_amend], "comment" => { "body" => -"[URLs to be changed] +"[Reason for request] +Factual inaccuracy + +[Subject area] +Benefits + +[Deadline date] +31-12-#{next_year} + +[Deadline time] +13:00 + +[Do not publish before date] +01-12-#{next_year} + +[Do not publish before time] +18:00 + +[URLs to be changed] http://gov.uk/X [Details of what should be added, amended or removed]