Fix due_date on Gitlab-Node

This commit is contained in:
Jan Oberhauser 2019-11-10 10:17:56 +01:00
parent 2234f9f0c7
commit ae0ee5ca01

View file

@ -241,7 +241,7 @@ export class Gitlab implements INodeType {
}, },
{ {
displayName: 'Body', displayName: 'Body',
name: 'description', name: 'body',
type: 'string', type: 'string',
typeOptions: { typeOptions: {
rows: 5, rows: 5,
@ -259,6 +259,23 @@ export class Gitlab implements INodeType {
}, },
description: 'The body of the issue.', description: 'The body of the issue.',
}, },
{
displayName: 'Due Date',
name: 'due_date',
type: 'dateTime',
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'issue',
],
},
},
default: '',
description: 'Due Date for issue.',
},
{ {
displayName: 'Labels', displayName: 'Labels',
name: 'labels', name: 'labels',
@ -317,31 +334,8 @@ export class Gitlab implements INodeType {
}, },
], ],
}, },
{
displayName: 'Due Date',
name: 'date_date',
type: 'string',
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'issue',
],
},
},
default: { 'due_date': '' },
options: [
{
displayName: 'Due Date',
name: 'date_date',
type: 'string',
default: 0,
description: 'Due Date for issue. Date time string in the format YEAR-MONTH-DAY, e.g. 2016-03-11',
},
],
},
// ---------------------------------- // ----------------------------------
// issue:createComment // issue:createComment
// ---------------------------------- // ----------------------------------
@ -501,9 +495,9 @@ export class Gitlab implements INodeType {
{ {
displayName: 'Due Date', displayName: 'Due Date',
name: 'due_date', name: 'due_date',
type: 'string', type: 'dateTime',
default: '', default: '',
description: 'The Due Date of the issue. Date time string in the format YEAR-MONTH-DAY, e.g. 2016-03-11', description: 'Due Date for issue.',
}, },
], ],
}, },
@ -860,6 +854,7 @@ export class Gitlab implements INodeType {
body.title = this.getNodeParameter('title', i) as string; body.title = this.getNodeParameter('title', i) as string;
body.description = this.getNodeParameter('body', i) as string; body.description = this.getNodeParameter('body', i) as string;
body.due_date = this.getNodeParameter('due_date', i) as string;
const labels = this.getNodeParameter('labels', i) as IDataObject[]; const labels = this.getNodeParameter('labels', i) as IDataObject[];
const assigneeIds = this.getNodeParameter('assignee_ids', i) as IDataObject[]; const assigneeIds = this.getNodeParameter('assignee_ids', i) as IDataObject[];