How to format Jira entity properties such that they are searchable via JQL

Hi @abhinav.ojha, sure, the most important point is

the property root should always be a JSON object

In your example, you’d have to nest the array in a JSON object like so:

{
  mylist: [
    {
      "id": "xyz",
      "role": "dev",
      "key": "admin"
    },
    {
      "id": "xyz",
      "role": "test",
      "key": "abc"
    },
    . . .
  ]
}

After that, you can index it by adding something like this to your descriptor:

{
  "jiraEntityProperties": [{
    "name": {
      "value": "My List",
      "i18n": "mylist"
    },
    "key": "list-property",
    "entityType": "issue",
    "keyConfigurations": [{
      "propertyKey": "com.mydomain.list.property",
      "extractions": [{
          "objectName": "mylist.id",
          "type": "text",
          "alias": "myListId"
        },
        {
          "objectName": "mylist.role",
          "type": "text",
          "alias": "myListRole"
        },
        {
          "objectName": "mylist.key",
          "type": "text",
          "alias": "myListKey"
        }
      ]
    }]
  }]
}

I did not test this myself, but I think you can index object attributes in an array like this.