mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Fix Reporter field for Jira Server (#2486)
This commit is contained in:
parent
32dc10f289
commit
77cc38abdd
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue