Hi,
I am looking into using Jira issue properties in my connect add-on. I am trying to store the following data into a property:
[
{
"id": "14471984509",
"appId": "w5l3q6fg"
},
...
]
Storing this value is not a problem at all, but I ran into issues trying to make id searchable via JQL using this property config:
{
"jiraEntityProperties": [{
"name": {
"value": "Links",
"i18n": "links"
},
"key": "links-property",
"entityType": "issue",
"keyConfigurations": [{
"propertyKey": "links",
"extractions": [{
"objectName": "id",
"type": "text"
},
{
"objectName": "appId",
"type": "text"
}
]
}]
}]
}
After re-reading the documentation a few times it seems that:
- the property root should be always be a JSON object (not an array as shown above)
- indexing array values only works if simple types string and number
Maybe I am trying to do something that is not possible in the first place. But looking at the example in this documentation made me believe this is somehow possible* (see explanation below).
Does someone know a way to:
- make an array at the property root searchable
- make object values inside an array searchable
*The example in the documentation shows how to add a task to a property called tasks (name and screenshot at the bottom suggesting you can add multiple). The task stored in the example looks as follows:
{
content: "Test if works on Jira Cloud",
completed: 1
}
It’s obvious that you can index this because it’s a single object at the property root. However, I do wonder what the property format looks like if there are multiple tasks (see screenshot at the bottom of the documentation => suggests you can add more tasks).