description:'ID of the requester of the change. 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 agent to whom the change is 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 department requesting the change. 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 agent group to which the change is 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:'Whether to return all results or only up to a given limit',
displayOptions:{
show:{
resource:[
'change',
],
operation:[
'getAll',
],
},
},
},
{
displayName:'Limit',
name:'limit',
type:'number',
default:50,
description:'How many results to return',
typeOptions:{
minValue: 1,
},
displayOptions:{
show:{
resource:[
'change',
],
operation:[
'getAll',
],
returnAll:[
false,
],
},
},
},
{
displayName:'Filters',
name:'filters',
type:'collection',
placeholder:'Add Filter',
default:{},
displayOptions:{
show:{
resource:[
'change',
],
operation:[
'getAll',
],
},
},
options:[
{
displayName:'Predefined Filters',
name:'filter',
type:'options',
default:'my_open',
options:[
{
name:'Closed',
value:'closed',
},
{
name:'My Open',
value:'my_open',
},
{
name:'Release Requested',
value:'release_requested',
},
{
name:'Requester ID',
value:'requester_id',
},
{
name:'Unassigned',
value:'unassigned',
},
],
},
{
displayName:'Sort Order',
name:'sort_by',
type:'options',
options:[
{
name:'Ascending',
value:'asc',
},
{
name:'Descending',
value:'desc',
},
],
default:'asc',
},
{
displayName:'Updated Since',
name:'updated_since',
type:'dateTime',
default:'',
},
],
},
// ----------------------------------------
// change: update
// ----------------------------------------
{
displayName:'Change ID',
name:'changeId',
description:'ID of the change to update',
type:'string',
required: true,
default:'',
displayOptions:{
show:{
resource:[
'change',
],
operation:[
'update',
],
},
},
},
{
displayName:'Update Fields',
name:'updateFields',
type:'collection',
placeholder:'Add Field',
default:{},
displayOptions:{
show:{
resource:[
'change',
],
operation:[
'update',
],
},
},
options:[
{
displayName:'Agent Name/ID',
name:'agent_id',
type:'options',
default:'',
description:'ID of the agent to whom the change is 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 department requesting the change. 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 agent group to which the change is 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 requester of the change. 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>.',