summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-07 22:46:55 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-07 22:46:55 +0200
commitde7509dc60257667192054e320b381f9dd0f0a31 (patch)
treef8922bb26372b7a1d6741d977187cd2aa46c76a0 /models/cards.js
parent9fd14f7ecb593d3debf5adff8f6c61adb0c3feca (diff)
downloadwekan-de7509dc60257667192054e320b381f9dd0f0a31.tar.gz
wekan-de7509dc60257667192054e320b381f9dd0f0a31.tar.bz2
wekan-de7509dc60257667192054e320b381f9dd0f0a31.zip
Assignee field like Jira #2452 , Done.
Update REST API docs, there can only be one assignee in array. Thanks to xet7 !
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/models/cards.js b/models/cards.js
index 3944b09f..816132fe 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -205,7 +205,8 @@ Cards.attachSchema(
},
assignees: {
/**
- * who assignees of the card (user IDs)
+ * who is assignee of the card (user ID),
+ * maximum one ID of assignee in array.
*/
type: [String],
optional: true,
@@ -1995,7 +1996,7 @@ if (Meteor.isServer) {
* @param {string} description the description of the new card
* @param {string} swimlaneId the swimlane ID of the new card
* @param {string} [members] the member IDs list of the new card
- * @param {string} [assignees] the assignee IDs list of the new card
+ * @param {string} [assignees] the array of maximum one ID of assignee of the new card
* @return_type {_id: string}
*/
JsonRoutes.add('POST', '/api/boards/:boardId/lists/:listId/cards', function(
@@ -2081,7 +2082,7 @@ if (Meteor.isServer) {
* @param {string} [labelIds] the new list of label IDs attached to the card
* @param {string} [swimlaneId] the new swimlane ID of the card
* @param {string} [members] the new list of member IDs attached to the card
- * @param {string} [assignees] the new list of assignee IDs attached to the card
+ * @param {string} [assignees] the array of maximum one ID of assignee attached to the card
* @param {string} [requestedBy] the new requestedBy field of the card
* @param {string} [assignedBy] the new assignedBy field of the card
* @param {string} [receivedAt] the new receivedAt field of the card