feat(api): allow setting custom fields when creating a card via API (closes #1155)
This commit is contained in:
@@ -53,6 +53,9 @@ module.exports = {
|
||||
type: 'json',
|
||||
custom: isStopwatch,
|
||||
},
|
||||
customFields: {
|
||||
type: 'ref',
|
||||
},
|
||||
},
|
||||
|
||||
exits: {
|
||||
@@ -96,6 +99,10 @@ module.exports = {
|
||||
'stopwatch',
|
||||
]);
|
||||
|
||||
if (inputs.customFields) {
|
||||
values.customFields = inputs.customFields;
|
||||
}
|
||||
|
||||
const card = await sails.helpers.cards.createOne
|
||||
.with({
|
||||
project,
|
||||
|
||||
Reference in New Issue
Block a user