title: JIRA REST API 6.01 - listing all groups
body: <p>I am trying to use JIRA REST API[1] to list all the groups in JIRA. I am currently using JIRA version 6.01 .</p>
  
  <p>I tried /rest/api/2/groups/picker[2] in JIRA REST API 6.01 but could not find a way to specify the parameter "query" as the way I need. </p>
  
  <p>If I use a whole group name in parameter "query", I receive the correct group like this.</p>
  
  <p><strong>Request 1:</strong></p>
  
  <pre><code>GET /jira/rest/api/2/groups/picker?query=jira-users
  </code></pre>
  
  <p><strong>Response 1</strong></p>
  
  <pre><code>{
     "header": "Showing 1 of 1 matching groups",
     "total": 1,
     "groups": [   {
        "name": "jira-users",
        "html": "&lt;b&gt;jira-users&lt;\/b&gt;"
     }]
  }
  </code></pre>
  
  <p>But if I use a part of the group name in "query" parameter, it does not give expected results.</p>
  
  <p><strong>Request 2</strong> </p>
  
  <pre><code>GET /jira/rest/api/2/groups/picker?query=j
  </code></pre>
  
  <p>According to the method spec [2] I hope to receive all groups that name contains "j" but I do not receive any result.</p>
  
  <p><strong>Response 2</strong></p>
  
  <pre><code>{
     "header": "Showing 0 of 0 matching groups",
     "total": 0,
     "groups": []   
  }
  </code></pre>
  
  <p>Can anyone please let me know the right way to give parameters?</p>
  
  <p>Thank you</p>
  
  <p>[1] <a href="https://developer.atlassian.com/static/rest/jira/6.0.1.html" rel="nofollow">https://developer.atlassian.com/static/rest/jira/6.0.1.html</a></p>
  
  <p>[2] <a href="https://developer.atlassian.com/static/rest/jira/6.0.1.html#id150432" rel="nofollow">https://developer.atlassian.com/static/rest/jira/6.0.1.html#id150432</a></p>