mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04: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: '',
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue