我正在尝试使用JIRA REST API [1]列出JIRA中的所有组.我目前正在使用JIRA版本6.01.
我在JIRA REST API 6.01中尝试过/ rest/api/2/groups/picker [2]但是找不到按照我需要的方式指定参数"query"的方法.
如果我在参数"query"中使用整个组名,我会收到这样的正确组.
要求1:
GET /jira/rest/api/2/groups/picker?query=jira-users
Run Code Online (Sandbox Code Playgroud)
回应1
{
"header": "Showing 1 of 1 matching groups",
"total": 1,
"groups": [ {
"name": "jira-users",
"html": "<b>jira-users<\/b>"
}]
}
Run Code Online (Sandbox Code Playgroud)
但是如果我在"查询"参数中使用组名的一部分,则它不会给出预期的结果.
要求2
GET /jira/rest/api/2/groups/picker?query=j
Run Code Online (Sandbox Code Playgroud)
根据方法规范[2],我希望收到名称中包含"j"的所有组,但我没有收到任何结果.
回应2
{
"header": "Showing 0 of 0 matching groups",
"total": 0,
"groups": []
}
Run Code Online (Sandbox Code Playgroud)
任何人都可以让我知道给出参数的正确方法吗?
谢谢
[1] https://developer.atlassian.com/static/rest/jira/6.0.1.html
[2] https://developer.atlassian.com/static/rest/jira/6.0.1.html#id150432
jira ×1