Skip to content

Commit

Permalink
Temporarily add content request fields into the ticket body
Browse files Browse the repository at this point in the history
There is an issue with Zapier integration the content teams use to create
Trello cards from Zendesk tickets.  Deadlines/not-before dates aren’t pulling
through on cards because this data is now in different fields. This was
anticipated however colleagues with with login details to the Zapier account
are not available today to make a change.  We will temporally add this
information to the ticket body so it's copied over to Trello with Zapier.

Once Zapier is updated we can revert this commit.
  • Loading branch information
AgaDufrat committed Oct 13, 2023
1 parent 1cf0427 commit bcd9984
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
14 changes: 14 additions & 0 deletions app/models/zendesk/ticket/content_change_request_ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
20 changes: 19 additions & 1 deletion spec/features/content_change_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit bcd9984

Please sign in to comment.