Hi!
Does anybody know how to use indexed macro parameter in CQL query from Rest API?
There is a lack of documentation about this topic.
I made the macro according docs with one parameter marked as indexing.
"parameters": [
{
"identifier": "excerptNames",
"name": {
"value": "excerptNames"
},
"type": "string",
"required": false,
"indexing": {
"enabled": true
}
}
]
When I invoked rest for this CQL
GET /wiki/rest/api/content/search?cql=excerptNames="sampleexcerpt"
I got error
{
"statusCode": 400,
"data": {
"authorized": false,
"valid": true,
"errors": [],
"successful": false
},
"message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: No field exists with the name: 'excerptNames'"
}
Any suggestions?
Best regards,
Dima