mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
⚡ Add reporter field to resource issue (Jira) (#1592)
This commit is contained in:
parent
9865dcdb0a
commit
0cfcd1170f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue