mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
⚡ Add reporter field to resource issue (Jira) (#1592)
This commit is contained in:
@@ -253,6 +253,16 @@ export const issueFields = [
|
||||
default: '',
|
||||
description: 'Priority',
|
||||
},
|
||||
{
|
||||
displayName: 'Reporter',
|
||||
name: 'reporter',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
description: 'Reporter',
|
||||
},
|
||||
{
|
||||
displayName: 'Update History',
|
||||
name: 'updateHistory',
|
||||
@@ -418,6 +428,16 @@ export const issueFields = [
|
||||
default: '',
|
||||
description: 'Priority',
|
||||
},
|
||||
{
|
||||
displayName: 'Reporter',
|
||||
name: 'reporter',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
description: 'Reporter',
|
||||
},
|
||||
{
|
||||
displayName: 'Summary',
|
||||
name: 'summary',
|
||||
|
||||
@@ -11,6 +11,7 @@ export interface IFields {
|
||||
priority?: IDataObject;
|
||||
project?: IDataObject;
|
||||
summary?: string;
|
||||
reporter?: IDataObject;
|
||||
}
|
||||
|
||||
export interface IIssue {
|
||||
|
||||
@@ -448,6 +448,11 @@ export class Jira implements INodeType {
|
||||
};
|
||||
}
|
||||
}
|
||||
if (additionalFields.reporter) {
|
||||
fields.reporter = {
|
||||
id: additionalFields.reporter as string,
|
||||
};
|
||||
}
|
||||
if (additionalFields.description) {
|
||||
fields.description = additionalFields.description as string;
|
||||
}
|
||||
@@ -520,6 +525,11 @@ export class Jira implements INodeType {
|
||||
};
|
||||
}
|
||||
}
|
||||
if (updateFields.reporter) {
|
||||
fields.reporter = {
|
||||
id: updateFields.reporter as string,
|
||||
};
|
||||
}
|
||||
if (updateFields.description) {
|
||||
fields.description = updateFields.description as string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user