mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(jira): assignee is optional on creation
This commit is contained in:
parent
102c1398e8
commit
3ac5588e7d
|
@ -189,6 +189,7 @@ export const issueFields: INodeProperties[] = [
|
||||||
displayName: 'Assignee',
|
displayName: 'Assignee',
|
||||||
name: 'assignee',
|
name: 'assignee',
|
||||||
type: 'resourceLocator',
|
type: 'resourceLocator',
|
||||||
|
required: false,
|
||||||
default: { mode: 'list', value: '' },
|
default: { mode: 'list', value: '' },
|
||||||
modes: [
|
modes: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -491,6 +491,7 @@ export class Jira implements INodeType {
|
||||||
extractValue: true,
|
extractValue: true,
|
||||||
});
|
});
|
||||||
if (assignee) additionalFields.assignee = assignee;
|
if (assignee) additionalFields.assignee = assignee;
|
||||||
|
else delete additionalFields.assignee;
|
||||||
|
|
||||||
const reporter = this.getNodeParameter('additionalFields.reporter', i, '', {
|
const reporter = this.getNodeParameter('additionalFields.reporter', i, '', {
|
||||||
extractValue: true,
|
extractValue: true,
|
||||||
|
|
Loading…
Reference in a new issue