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: '',
|
default: '',
|
||||||
description: 'Priority',
|
description: 'Priority',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Reporter',
|
||||||
|
name: 'reporter',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getUsers',
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
description: 'Reporter',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Update History',
|
displayName: 'Update History',
|
||||||
name: 'updateHistory',
|
name: 'updateHistory',
|
||||||
@@ -418,6 +428,16 @@ export const issueFields = [
|
|||||||
default: '',
|
default: '',
|
||||||
description: 'Priority',
|
description: 'Priority',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Reporter',
|
||||||
|
name: 'reporter',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getUsers',
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
description: 'Reporter',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Summary',
|
displayName: 'Summary',
|
||||||
name: 'summary',
|
name: 'summary',
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export interface IFields {
|
|||||||
priority?: IDataObject;
|
priority?: IDataObject;
|
||||||
project?: IDataObject;
|
project?: IDataObject;
|
||||||
summary?: string;
|
summary?: string;
|
||||||
|
reporter?: IDataObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IIssue {
|
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) {
|
if (additionalFields.description) {
|
||||||
fields.description = additionalFields.description as string;
|
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) {
|
if (updateFields.description) {
|
||||||
fields.description = updateFields.description as string;
|
fields.description = updateFields.description as string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user