I am using https://developer.atlassian.com/platform/forge/storage-reference/storage-api-custom-entities/
I have defined a custom entity with attribute name as “labels” with type as “any”.
This attribute stores an array of string. Now i want to search all entities with labels containing “security”. For this i am creating an index
- name: by-spacekey-labels
partition:
- spaceKey
range:
- labels
This gives error while deploying app
Error: Manifest validation failed: Failed to validate custom entities (requestId: 62bad3716cf241c8a34352edec0c3774)
Error: Manifest validation failed: Failed to validate custom entities (requestId: 62bad3716cf241c8a34352edec0c3774)
I also tried creating below index
- name: by-spacekey
partition:
- spaceKey
range:
- spaceKey
and then used
.andFilter("labels", FilterConditions.contains('security'))
it also gives error
ERROR 14:19:07.002 adae4469-abac-4dd7-9a44-55eb95a6b495 APIError: Invalid type for operator "CONTAINS" on property "labels"
What is correct way to store array as attribute and filtering or searching based on array content?