在custom_field上搜索时,出现以下错误。
{"errorMessages":["Field 'customfield_10029' does not exist or you do not have permission to view it."],"warningMessages":[]}
- 但我有足够的权限(Admin(访问该字段。我还启用了可见字段
URL='https://xyz.atlassian.net/rest/api/2/search?jql=status="进行中"+和+customfield_10029=125&fields=id,key,status‘
JQL搜索中的自定义字段使用缩写"cf"和方括号中的ID"[ID]'引用,因此您的URL将为:
URL='https://xyz.atlassian.net/rest/api/2/search?jql=status="进行中"+并且+cf[10029]=125&fields=id,key,status‘
请确保在语言的编码方法中以UTF-8格式正确编码方括号。
PS。一般来说,在JQL搜索中,通过名称而不是ID引用自定义字段要容易得多。它使搜索URL更容易阅读和理解正在搜索的内容。
我得到了一个带有自定义字段语法的400响应代码:https://domain/rest/api/2/search?maxResults=500&jql=cf[10025]='xxxxxxxxx-d'&fields=id,key,issuetype,status,customfield_10025