mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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: {
|
show: {
|
||||||
resource: ['issue'],
|
resource: ['issue'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
|
'@version': [1],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
@@ -258,7 +259,6 @@ export const issueFields: INodeProperties[] = [
|
|||||||
displayName: 'Priority Name/ID',
|
displayName: 'Priority Name/ID',
|
||||||
name: 'priorityId',
|
name: 'priorityId',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
|
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Urgent',
|
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 */
|
/* issue:addLink */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export class Linear implements INodeType {
|
|||||||
name: 'linear',
|
name: 'linear',
|
||||||
icon: 'file:linear.svg',
|
icon: 'file:linear.svg',
|
||||||
group: ['output'],
|
group: ['output'],
|
||||||
version: 1,
|
version: [1, 1.1],
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
description: 'Consume Linear API',
|
description: 'Consume Linear API',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
|||||||
Reference in New Issue
Block a user