description:'ID of the initiator of the problem. 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 problem is due to be solved',
type:'dateTime',
default:'',
displayOptions:{
show:{
resource:[
'problem',
],
operation:[
'create',
],
},
},
},
{
displayName:'Additional Fields',
name:'additionalFields',
type:'collection',
placeholder:'Add Field',
default:{},
displayOptions:{
show:{
resource:[
'problem',
],
operation:[
'create',
],
},
},
options:[
{
displayName:'Agent Name/ID',
name:'agent_id',
type:'options',
default:'',
description:'ID of the agent to whom the problem 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 initiating the problem. 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 problem 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:[
'problem',
],
operation:[
'getAll',
],
},
},
},
{
displayName:'Limit',
name:'limit',
type:'number',
default:50,
description:'How many results to return',
typeOptions:{
minValue: 1,
},
displayOptions:{
show:{
resource:[
'problem',
],
operation:[
'getAll',
],
returnAll:[
false,
],
},
},
},
// ----------------------------------------
// problem: update
// ----------------------------------------
{
displayName:'Problem ID',
name:'problemId',
description:'ID of the problem to update',
type:'string',
required: true,
default:'',
displayOptions:{
show:{
resource:[
'problem',
],
operation:[
'update',
],
},
},
},
{
displayName:'Update Fields',
name:'updateFields',
type:'collection',
placeholder:'Add Field',
default:{},
displayOptions:{
show:{
resource:[
'problem',
],
operation:[
'update',
],
},
},
options:[
{
displayName:'Agent Name/ID',
name:'agent_id',
type:'options',
default:'',
description:'ID of the agent to whom the problem 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 initiating the problem. 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 problem is due to be solved',
type:'dateTime',
default:'',
},
{
displayName:'Group Name/ID',
name:'group_id',
type:'options',
default:'',
description:'ID of the agent group to which the problem 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 initiator of the problem. 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>.',