Hi,
I would like to get the only total result count of JIRA api request without getting the result data . So that i can raise a popup do you want display all result or limited result.
Below is such request i want to get only count.
https://www.example.com/rest/api/2/search?jql=issuetype="RICEFW"&fields=worklog
Thanks
Ravichand.
Hello,
You can set the maxResults parameter to 1 and have a look at the total value in the response:
{ "expand": "names,schema", "startAt": 0, "maxResults": 50, "total": 1, "issues": [ { "expand": "", "id": "10001", "self": "http://www.example.com/jira/rest/api/2/issue/10001", "key": "HSP-1" } ] }
First we send with max Result and raise a popup and send the same request again if we do this twice
will there is a performance issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It all depends on how often you do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also set maxResults to 0.
In that case, your results will look simply like this:
{"startAt":0,"maxResults":0,"total":1234,"issues":[]}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.