mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(Linear Node): Fix issue with priority being incorrect for issue updates (#16764)
This commit is contained in:
@@ -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 */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user