fix(jira): assignee is optional on creation

This commit is contained in:
Nathanael DEMACON 2023-04-21 16:33:31 +02:00
parent 102c1398e8
commit 3ac5588e7d
No known key found for this signature in database
GPG key ID: A795CBA2D2769B22
2 changed files with 2 additions and 0 deletions

View file

@ -189,6 +189,7 @@ export const issueFields: INodeProperties[] = [
displayName: 'Assignee',
name: 'assignee',
type: 'resourceLocator',
required: false,
default: { mode: 'list', value: '' },
modes: [
{

View file

@ -491,6 +491,7 @@ export class Jira implements INodeType {
extractValue: true,
});
if (assignee) additionalFields.assignee = assignee;
else delete additionalFields.assignee;
const reporter = this.getNodeParameter('additionalFields.reporter', i, '', {
extractValue: true,