JIRA REST API 6.01 - listing all groups

I am trying to use the JIRA REST API [1] to list all groups in JIRA. I am currently using JIRA version 6.01.

I tried / rest / api / 2 / groups / picker [2] in JIRA REST API 6.01, but could not find a way to specify the query parameter as the way I needed.

If I use the integer group name in the query parameter, I get the correct group as follows.

Request 1:

GET /jira/rest/api/2/groups/picker?query=jira-users

Answer 1

{
   "header": "Showing 1 of 1 matching groups",
   "total": 1,
   "groups": [   {
      "name": "jira-users",
      "html": "<b>jira-users<\/b>"
   }]
}

But if I use part of the group name in the query parameter, it does not produce the expected results.

Request 2

GET /jira/rest/api/2/groups/picker?query=j

According to the spec [2] method, I hope to get all groups whose names contain "j", but I get no result.

Answer 2

{
   "header": "Showing 0 of 0 matching groups",
   "total": 0,
   "groups": []   
}

Can someone please tell me the correct way to give the parameters?

thank

[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

+3
1

JIRA 6.0.7 :

/rest/api/2/groups/picker?maxResults=10000

10000. , , maxResults, , , :

{
    "header":"Showing 5014 of 5014 matching groups",
    "total":5014,
    "groups":{
        ...
    }
}

maxResults, 20 5014. :

/rest/api/2/groups/picker?query=j

, j. , . , , , name group.

+5

All Articles