2021-04-24 10:57:49 -07:00
|
|
|
import {
|
|
|
|
INodePropertyOptions,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export const triggerPlaceholders = [
|
|
|
|
{
|
|
|
|
name: 'Title',
|
|
|
|
value: 'ticket.title',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s subject',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Description',
|
|
|
|
value: 'ticket.description',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s description',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'URL',
|
|
|
|
value: 'ticket.url',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s URL',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'ID',
|
|
|
|
value: 'ticket.id',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s ID',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'External ID',
|
|
|
|
value: 'ticket.external_id',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s external ID',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Via',
|
|
|
|
value: 'ticket.via',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s source',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Status',
|
|
|
|
value: 'ticket.status',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s status',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Priority',
|
|
|
|
value: 'ticket.priority',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s priority',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Type',
|
|
|
|
value: 'ticket.ticket_type',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s type',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Group Name',
|
|
|
|
value: 'ticket.group.name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s assigned group',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Brand Name',
|
|
|
|
value: 'ticket.brand.name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s brand',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Due Date',
|
|
|
|
value: 'ticket.due_date',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s due date (relevant for tickets of type Task)',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Account',
|
|
|
|
value: 'ticket.account',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'This Zendesk Support\'s account name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Assignee Email',
|
|
|
|
value: 'ticket.assignee.email',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket assignee email (if any)',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Assignee Name',
|
|
|
|
value: 'ticket.assignee.name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Assignee\'s full name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Assignee First Name',
|
|
|
|
value: 'ticket.assignee.first_name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Assignee\'s first name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Assignee Last Name',
|
|
|
|
value: 'ticket.assignee.last_name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Assignee\'s last name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Full Name',
|
|
|
|
value: 'ticket.requester.name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s full name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester First Name',
|
|
|
|
value: 'ticket.requester.first_name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s first name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Last Name',
|
|
|
|
value: 'ticket.requester.last_name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s last name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Email',
|
|
|
|
value: 'ticket.requester.email',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s email',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Language',
|
|
|
|
value: 'ticket.requester.language',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s language',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Phone',
|
|
|
|
value: 'ticket.requester.phone',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s phone number',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester External ID',
|
|
|
|
value: 'ticket.requester.external_id',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s external ID',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Field',
|
|
|
|
value: 'ticket.requester.requester_field',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Name or email',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Details',
|
|
|
|
value: 'ticket.requester.details',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Detailed information about the ticket\'s requester',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Requester Organization',
|
|
|
|
value: 'ticket.organization.name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Requester\'s organization',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Ticket's Organization External ID`,
|
|
|
|
value: 'ticket.organization.external_id',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s organization external ID',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Organization details`,
|
|
|
|
value: 'ticket.organization.details',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'The details about the organization of the ticket\'s requester',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Organization Note`,
|
|
|
|
value: 'ticket.organization.notes',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'The notes about the organization of the ticket\'s requester',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Ticket's CCs`,
|
|
|
|
value: 'ticket.ccs',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s CCs',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Ticket's CCs names`,
|
|
|
|
value: 'ticket.cc_names',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s CCs names',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Ticket's tags`,
|
|
|
|
value: 'ticket.tags',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Ticket\'s tags',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current Holiday Name`,
|
|
|
|
value: 'ticket.current_holiday_name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Displays the name of the current holiday on the ticket\'s schedule',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Name `,
|
|
|
|
value: 'current_user.name',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Your full name',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User First Name `,
|
|
|
|
value: 'current_user.first_name',
|
|
|
|
description: 'Your first name',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Email `,
|
|
|
|
value: 'current_user.email',
|
|
|
|
description: 'Your primary email',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Organization Name `,
|
|
|
|
value: 'current_user.organization.name',
|
|
|
|
description: 'Your default organization',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Organization Details `,
|
|
|
|
value: 'current_user.organization.details',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Your default organization\'s details',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Organization Notes `,
|
|
|
|
value: 'current_user.organization.notes',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Your default organization\'s note',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Language `,
|
|
|
|
value: 'current_user.language',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Your chosen language',
|
2021-04-24 10:57:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User External ID `,
|
|
|
|
value: 'current_user.external_id',
|
|
|
|
description: 'Your external ID',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Current User Notes `,
|
|
|
|
value: 'current_user.notes',
|
|
|
|
description: 'Your notes, stored in your profile',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Satisfation Current Rating `,
|
|
|
|
value: 'satisfaction.current_rating',
|
|
|
|
description: 'The text of the current satisfaction rating',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: `Satisfation Current Comment `,
|
|
|
|
value: 'satisfaction.current_comment',
|
|
|
|
description: 'The text of the current satisfaction rating comment',
|
|
|
|
},
|
|
|
|
] as INodePropertyOptions[];
|