Add reporter field to resource issue (Jira) (#1592)

This commit is contained in:
Ricardo Espinoza 2021-04-02 09:31:25 -04:00 committed by GitHub
parent 9865dcdb0a
commit 0cfcd1170f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 0 deletions

View file

@ -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',

View file

@ -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 {

View file

@ -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;
} }