Hello,
Has anybody been able, from a Forge app, to query the autocomplete fields of an Asset Custom field or been able to retrieve the complete configuration of an Asset Custom field ?
I get this config when requesting the create meta:
{
"required": false,
"schema": {
"type": "array",
"items": "cmdb-object-field",
"custom": "com.atlassian.jira.plugins.cmdb:cmdb-object-cftype",
"customId": 10647
},
"name": "AQL select",
"key": "customfield_10647",
"autoCompleteUrl": "https://xxx.atlassian.net/rest/servicedesk/cmdb/1/field/customfield_10647/config/10976/autocomplete?",
"hasDefaultValue": false,
"operations": [
"set"
],
"configuration": {
"multiple": false,
"attributesIncludedInAutoCompleteSearch": [
"Name",
"Floor Name"
],
"isInsightAvailable": true
},
"fieldId": "customfield_10647"
}
So I thought that I could call the autoCompleteUrl
. I first had to remove the host as it was not supported to be used in requestJira
but now I get 401 with missing scope message.
I am able to run an AQL on the Asset API.
My goal is to be able to create a Select based on an AQL custom field and use that Select in my Forge app as we can’t render Custom fields (or can we?)…
Any hint ?
PS: all this to avoid having to reimplement the “heavy lifting” of AQL configuration as that is already present on the Custom field.