0
我正在使用郵遞員和Javascript查詢Cloud atlassian.net帳戶上的Confluence API。Confluence REST API搜索 - 編碼時編碼CQL查詢時出錯
當我在CQL它爲我的空間的場所使用+
(所以這是不工作的授權的問題 - 這個作品!):
https://mycompany.atlassian.net:443/confluence/rest/api/content/search?os_authType=basic&cql=type=page+and+space+in+(DEV,OPS)+and+title+~+deploy
但是使用空間不:
https://mycompany.atlassian.net:443/confluence/rest/api/content/search?os_authType=basic&cql=type=page and space in (DEV,OPS) and title ~ deploy
也不編碼版本:
https://mycompany.atlassian.net:443/confluence/rest/api/content/search?os_authType=basic&cql=type=page%20and%20space%20in%20(DEV,OPS)%20and%20title%20~%20deploy
他們都水庫在documentation我看沒有提到需要使用+
我只能基於以下一個question on Atlassian Answers的討論gleen這種基於
{
"statusCode": 400,
"data": {
"authorized": false,
"valid": true,
"errors": [],
"successful": false
},
"message": "Could not parse cql : type=page%20and%20space%20in(DEV,OPS)%20and%20title~deploy"
}
:ULT英寸
的長處都很好,但我需要使用模糊搜索來搜索多個術語所以像:
title+~+deploy+my+app
會導致:
"message": "Could not parse cql : type=page%20and%20space%20in(DEV,OPS)%20and%20title~deploy my app"
和:
title+~+"deploy+my+app"
將導致:
"message": "Could not parse cql : type=page%20and%20space%20in(DEV,OPS)%20and%20title~%22deploy my app%22"
有沒有辦法爲這個雲應用程序搜索多字字符串?
您是否嘗試過使用AND或OR查詢? 'title +〜+「部署或我的OR應用程序」' – ppasler
@ppasier謝謝,好想法。同樣的結果,因爲引號和空格需要編碼。 –