n8n-nodes-base
Version:
Base nodes of n8n
94 lines (89 loc) • 2.79 kB
text/typescript
/**
* Jira Software Node - Version 1
* Discriminator: resource=issue, operation=update
*/
interface Credentials {
jiraSoftwareCloudApi: CredentialReference;
jiraSoftwareServerApi: CredentialReference;
jiraSoftwareServerPatApi: CredentialReference;
}
/** Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask */
export type JiraV1IssueUpdateParams = {
resource: 'issue';
operation: 'update';
jiraVersion?: 'cloud' | 'server' | 'serverPat' | Expression<string>;
/**
* Issue Key
*/
issueKey?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** Assignee
* @default {"mode":"list","value":""}
*/
assignee?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/** Description
*/
description?: string | Expression<string> | PlaceholderValue;
/** Custom Fields
* @default {}
*/
customFieldsUi?: {
/** Custom Field
*/
customFieldsValues?: Array<{
/** Field
* @default {"mode":"list","value":""}
*/
fieldId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/** Value of the field to set
*/
fieldValue?: string | Expression<string> | PlaceholderValue;
}>;
};
/** Issue Types
*/
issueType?: string | Expression<string> | PlaceholderValue;
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.show { /jiraVersion: ["cloud"] }
* @default []
*/
labels?: string[];
/** Labels
* @displayOptions.show { /jiraVersion: ["server"] }
* @default []
*/
serverLabels?: string | Expression<string> | PlaceholderValue;
/** Parent Issue Key
*/
parentIssueKey?: string | Expression<string> | PlaceholderValue;
/** Priority
* @default {"mode":"list","value":""}
*/
priority?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/** Reporter
* @default {"mode":"list","value":""}
*/
reporter?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/** Summary
*/
summary?: string | Expression<string> | PlaceholderValue;
/** Status
* @default {"mode":"list","value":""}
*/
statusId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
};
};
export type JiraV1IssueUpdateOutput = {
success?: boolean;
};
export type JiraV1IssueUpdateNode = {
type: 'n8n-nodes-base.jira';
version: 1;
credentials?: Credentials;
config: NodeConfig<JiraV1IssueUpdateParams>;
output?: Items<JiraV1IssueUpdateOutput>;
};