context.getCardProperties(subject) - Retrieve additional card data. Available only within the context of card sections(card_buttons, card_body_section).
| argument | Type | Description |
|---|---|---|
| subjectrequired | enum | Subject data to retrieve. type - card type members- card members tags- card tags customProperties - card custom properties files - card files |
Return value - Promise that resolves to an array|object with subject data
An example of the returned object for subject "type":
{
"id": 1,
"color": 1,
"letter": "C",
"name": "Card"
}"members"
[{
"id": 2,
"full_name": "Clark Kent",
"type": 1, // 1 - member, 2 - responsible
"uid": "d6138c81-2267-4247-8fc0-38ad3df4c1bb",
"username": "superman"
}]"tags"
[{
"color": 8,
"created": "2025-04-25T13:56:49.651Z",
"id": 20,
"name": "test",
"updated": "2025-04-25T13:56:49.651Z"
}]"customProperties"
[{
"property": {
"created": "2025-03-24T15:44:56.510Z",
"id": 23,
"multi_select": false,
"name": "checkbox",
"type": "checkbox",
"values_type": null,
"vote_variant": null
},
"value": true
}]"files"
[{
"author_id": 1,
"comment_id": null,
"created": "2025-04-25T08:00:37.621Z",
"custom_property_id": null,
"id": 21,
"name": "Screenshot 2025-04-11 at 17.02.40.png",
"size": 59542,
"type": 1, // 1 - attachment, 2 - googleDrive, 3 - dropBox, 4 - box, 5 - oneDrive, 6 - yandexDisk, 7 - commentEmail, 8 - commentAttachment
"uid": "1215bafa-36bc-4fb2-b3ff-5b47a0fd5917",
"url": "http://localhost:3040/1b46dbfa-c865-4257-b411-ffc38130960c.png?name=Screenshot+2025-04-11+at+17.02.40.png"
}]