fall back to description or hard-coded title "No title" if ticket has no subject in Zendesk (which is allowed)
This commit is contained in:
parent
bd8ba66721
commit
97431be8d6
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module Import
|
||||||
|
|
||||||
{
|
{
|
||||||
id: ticket.id,
|
id: ticket.id,
|
||||||
title: ticket.subject,
|
title: ticket.subject || ticket.description || "No title",
|
||||||
owner_id: Import::Zendesk::UserFactory.local_id( ticket.assignee ) || 1,
|
owner_id: Import::Zendesk::UserFactory.local_id( ticket.assignee ) || 1,
|
||||||
note: ticket.description,
|
note: ticket.description,
|
||||||
group_id: Import::Zendesk::GroupFactory.local_id( ticket.group_id ) || 1,
|
group_id: Import::Zendesk::GroupFactory.local_id( ticket.group_id ) || 1,
|
||||||
|
|
Loading…
Reference in a new issue