description:'Comma-separated email addresses to add in the CC field of the ticket email',
},
{
displayName:'Department Name/ID',
name:'department_id',
type:'options',
default:'',
description:'ID of the department to which this ticket belongs. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Whether to return all results or only up to a given limit',
displayOptions:{
show:{
resource:[
'ticket',
],
operation:[
'getAll',
],
},
},
},
{
displayName:'Limit',
name:'limit',
type:'number',
default:50,
description:'How many results to return',
typeOptions:{
minValue: 1,
},
displayOptions:{
show:{
resource:[
'ticket',
],
operation:[
'getAll',
],
returnAll:[
false,
],
},
},
},
{
displayName:'Filters',
name:'filters',
type:'collection',
placeholder:'Add Filter',
default:{},
displayOptions:{
show:{
resource:[
'ticket',
],
operation:[
'getAll',
],
},
},
options:[
{
displayName:'Agent Name/ID',
name:'agent_id',
type:'options',
default:'',
description:'ID of the agent to whom the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'ID of the group to which the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Date when the ticket is due to be resolved',
type:'dateTime',
default:'',
},
],
},
// ----------------------------------------
// ticket: update
// ----------------------------------------
{
displayName:'Ticket ID',
name:'ticketId',
description:'ID of the ticket to update',
type:'string',
required: true,
default:'',
displayOptions:{
show:{
resource:[
'ticket',
],
operation:[
'update',
],
},
},
},
{
displayName:'Update Fields',
name:'updateFields',
type:'collection',
placeholder:'Add Field',
default:{},
displayOptions:{
show:{
resource:[
'ticket',
],
operation:[
'update',
],
},
},
options:[
{
displayName:'Department Name/ID',
name:'department_id',
type:'options',
default:'',
description:'ID of the department to which this ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',