diff --git a/packages/nodes-base/nodes/Linear/IssueDescription.ts b/packages/nodes-base/nodes/Linear/IssueDescription.ts
index f37c3408af..5b79c1a729 100644
--- a/packages/nodes-base/nodes/Linear/IssueDescription.ts
+++ b/packages/nodes-base/nodes/Linear/IssueDescription.ts
@@ -234,6 +234,7 @@ export const issueFields: INodeProperties[] = [
show: {
resource: ['issue'],
operation: ['update'],
+ '@version': [1],
},
},
options: [
@@ -258,7 +259,6 @@ export const issueFields: INodeProperties[] = [
displayName: 'Priority Name/ID',
name: 'priorityId',
type: 'options',
-
options: [
{
name: 'Urgent',
@@ -313,6 +313,97 @@ export const issueFields: INodeProperties[] = [
},
],
},
+ {
+ displayName: 'Update Fields',
+ name: 'updateFields',
+ type: 'collection',
+ placeholder: 'Add Field',
+ default: {},
+ displayOptions: {
+ show: {
+ resource: ['issue'],
+ operation: ['update'],
+ },
+ hide: {
+ '@version': [1],
+ },
+ },
+ options: [
+ {
+ displayName: 'Assignee Name or ID',
+ name: 'assigneeId',
+ type: 'options',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
+ typeOptions: {
+ loadOptionsMethod: 'getUsers',
+ },
+ default: '',
+ },
+ {
+ displayName: 'Description',
+ name: 'description',
+ type: 'string',
+ default: '',
+ },
+ {
+ displayName: 'Priority Name/ID',
+ name: 'priorityId',
+ type: 'options',
+ options: [
+ {
+ name: 'Urgent',
+ value: 1,
+ },
+ {
+ name: 'High',
+ value: 2,
+ },
+ {
+ name: 'Medium',
+ value: 3,
+ },
+ {
+ name: 'Low',
+ value: 4,
+ },
+ {
+ name: 'No Priority',
+ value: 0,
+ },
+ ],
+ default: 0,
+ },
+ {
+ displayName: 'State Name or ID',
+ name: 'stateId',
+ type: 'options',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
+ typeOptions: {
+ loadOptionsMethod: 'getStates',
+ },
+ default: '',
+ },
+ {
+ displayName: 'Team Name or ID',
+ name: 'teamId',
+ type: 'options',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
+ typeOptions: {
+ loadOptionsMethod: 'getTeams',
+ },
+ default: '',
+ },
+ {
+ displayName: 'Title',
+ name: 'title',
+ type: 'string',
+ default: '',
+ },
+ ],
+ },
/* -------------------------------------------------------------------------- */
/* issue:addLink */
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Linear/Linear.node.ts b/packages/nodes-base/nodes/Linear/Linear.node.ts
index 560b79864b..1962dbb273 100644
--- a/packages/nodes-base/nodes/Linear/Linear.node.ts
+++ b/packages/nodes-base/nodes/Linear/Linear.node.ts
@@ -33,7 +33,7 @@ export class Linear implements INodeType {
name: 'linear',
icon: 'file:linear.svg',
group: ['output'],
- version: 1,
+ version: [1, 1.1],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Linear API',
defaults: {