mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Expand Taiga node (#1970)
* ✨ Expand Taiga node * ⚡ Make projectId consistent * 🔥 Remove logging * 🔨 Fix user story statuses loader * ⚡ Add epics loader * 🔨 Make projectId required for updates * 🔨 Refactor credentials * ⚡ Small change * ⚡ Update credentials in trigger * 🔥 Remove old unused credentials * ✏️ Write breaking changes Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export class TaigaTrigger implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Taiga Trigger',
|
||||
name: 'taigaTrigger',
|
||||
icon: 'file:taiga.png',
|
||||
icon: 'file:taiga.svg',
|
||||
group: ['trigger'],
|
||||
version: 1,
|
||||
subtitle: '={{"project:" + $parameter["projectSlug"]}}',
|
||||
@@ -39,25 +39,7 @@ export class TaigaTrigger implements INodeType {
|
||||
outputs: ['main'],
|
||||
credentials: [
|
||||
{
|
||||
name: 'taigaCloudApi',
|
||||
displayOptions: {
|
||||
show: {
|
||||
version: [
|
||||
'cloud',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: 'taigaServerApi',
|
||||
displayOptions: {
|
||||
show: {
|
||||
version: [
|
||||
'server',
|
||||
],
|
||||
},
|
||||
},
|
||||
name: 'taigaApi',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
@@ -70,22 +52,6 @@ export class TaigaTrigger implements INodeType {
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Taiga Version',
|
||||
name: 'version',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Server (Self Hosted)',
|
||||
value: 'server',
|
||||
},
|
||||
],
|
||||
default: 'cloud',
|
||||
},
|
||||
{
|
||||
displayName: 'Project ID',
|
||||
name: 'projectId',
|
||||
@@ -146,15 +112,7 @@ export class TaigaTrigger implements INodeType {
|
||||
return false;
|
||||
},
|
||||
async create(this: IHookFunctions): Promise<boolean> {
|
||||
const version = this.getNodeParameter('version') as string;
|
||||
|
||||
let credentials;
|
||||
|
||||
if (version === 'server') {
|
||||
credentials = this.getCredentials('taigaServerApi') as ICredentialDataDecryptedObject;
|
||||
} else {
|
||||
credentials = this.getCredentials('taigaCloudApi') as ICredentialDataDecryptedObject;
|
||||
}
|
||||
const credentials = this.getCredentials('taigaApi') as ICredentialDataDecryptedObject;
|
||||
|
||||
const webhookUrl = this.getNodeWebhookUrl('default') as string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user