🔀 Merge branch 'mtahiue-fixes_description_field'

This commit is contained in:
Jan Oberhauser
2019-11-10 10:18:22 +01:00

View File

@@ -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',
@@ -318,6 +335,7 @@ export class Gitlab implements INodeType {
], ],
}, },
// ---------------------------------- // ----------------------------------
// issue:createComment // issue:createComment
// ---------------------------------- // ----------------------------------
@@ -409,7 +427,7 @@ export class Gitlab implements INodeType {
}, },
{ {
displayName: 'Body', displayName: 'Body',
name: 'body', name: 'description',
type: 'string', type: 'string',
typeOptions: { typeOptions: {
rows: 5, rows: 5,
@@ -474,6 +492,13 @@ export class Gitlab implements INodeType {
}, },
], ],
}, },
{
displayName: 'Due Date',
name: 'due_date',
type: 'dateTime',
default: '',
description: 'Due Date for issue.',
},
], ],
}, },
@@ -829,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[];