🐛 Fix Reporter field for Jira Server (#2486)

This commit is contained in:
mhuysamen 2021-12-11 18:47:35 +02:00 committed by GitHub
parent 32dc10f289
commit 77cc38abdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -506,9 +506,15 @@ export class Jira implements INodeType {
}
}
if (additionalFields.reporter) {
fields.reporter = {
id: additionalFields.reporter as string,
};
if (jiraVersion === 'server') {
fields.reporter = {
name: additionalFields.reporter as string,
};
} else {
fields.reporter = {
id: additionalFields.reporter as string,
};
}
}
if (additionalFields.description) {
fields.description = additionalFields.description as string;
@ -586,9 +592,15 @@ export class Jira implements INodeType {
}
}
if (updateFields.reporter) {
fields.reporter = {
id: updateFields.reporter as string,
};
if (jiraVersion === 'server') {
fields.reporter = {
name: updateFields.reporter as string,
};
} else {
fields.reporter = {
id: updateFields.reporter as string,
};
}
}
if (updateFields.description) {
fields.description = updateFields.description as string;