Support for Jira server

This commit is contained in:
Ricardo Espinoza
2020-02-01 18:15:56 -05:00
parent c06934d973
commit 94b13ddea2
7 changed files with 73 additions and 594 deletions

View File

@@ -5,23 +5,77 @@ import {
export class JiraSoftwareCloudApi implements ICredentialType {
name = 'jiraSoftwareCloudApi';
displayName = 'Jira SW Cloud API';
displayName = 'Jira SW API';
properties = [
{
displayName: 'Jira Version',
name: 'jiraVersion',
type: 'options' as NodePropertyTypes,
options: [
{
name: 'Cloud',
value: 'cloud',
},
{
name: 'Server (Self Hosted)',
value: 'server',
},
],
default: 'cloud',
},
{
displayName: 'Email',
name: 'email',
displayOptions: {
show: {
jiraVersion: [
'cloud',
],
},
},
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'API Token',
name: 'apiToken',
displayOptions: {
show: {
jiraVersion: [
'cloud',
],
},
},
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Password',
name: 'password',
displayOptions: {
show: {
jiraVersion: [
'server',
],
},
},
typeOptions: {
password: true,
},
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Domain',
name: 'domain',
displayOptions: {
show: {
jiraVersion: [
'cloud',
'server',
],
},
},
type: 'string' as NodePropertyTypes,
default: '',
},