mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
⚡ Some small adjustments
This commit is contained in:
parent
5f389cfa16
commit
d7ef2f41f8
|
@ -5,7 +5,7 @@ import {
|
|||
|
||||
export class JiraSoftwareCloudApi implements ICredentialType {
|
||||
name = 'jiraSoftwareCloudApi';
|
||||
displayName = 'Jira Software Cloud API';
|
||||
displayName = 'Jira SW Cloud API';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Email',
|
||||
|
|
|
@ -41,8 +41,7 @@ export const issueOpeations = [
|
|||
{
|
||||
name: 'Transitions',
|
||||
value: 'transitions',
|
||||
description: `Returns either all transitions or a transition that can be performed by<br/>
|
||||
the user on an issue, based on the issue's status.`,
|
||||
description: `Returns either all transitions or a transition that can be performed by the user on an issue, based on the issue's status.`,
|
||||
},
|
||||
{
|
||||
name: 'Delete',
|
||||
|
|
|
@ -209,9 +209,11 @@ export class JiraSoftwareCloud implements INodeType {
|
|||
const length = items.length as unknown as number;
|
||||
let responseData;
|
||||
const qs: IDataObject = {};
|
||||
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
if (resource === 'issue') {
|
||||
//https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-post
|
||||
if (operation === 'create') {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in a new issue