fix(Linear Node): Fix issue with priority being incorrect for issue updates (#16764)

This commit is contained in:
Jon
2025-07-10 21:34:46 +01:00
committed by GitHub
parent 2402926573
commit ced854df2c
2 changed files with 93 additions and 2 deletions

View File

@@ -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 <a href="https://docs.n8n.io/code/expressions/">expression</a>',
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 <a href="https://docs.n8n.io/code/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getStates',
},
default: '',
},
{
displayName: 'Team Name or ID',
name: 'teamId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getTeams',
},
default: '',
},
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
},
],
},
/* -------------------------------------------------------------------------- */
/* issue:addLink */
/* -------------------------------------------------------------------------- */

View File

@@ -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: {