Some small adjustments

This commit is contained in:
Jan Oberhauser 2019-12-02 22:40:24 +01:00
parent 5f389cfa16
commit d7ef2f41f8
4 changed files with 6 additions and 5 deletions

View file

@ -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',

View file

@ -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',

View file

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