I have code in Python jira module to get the issue total count for particular customfield like below,
from jira import JIRA
field_id=cf[xxxxxx]
got = 1000
total = 0
while got==1000:
JQL="%s is not EMPTY order by updated"%(field_id)
issues = jira.search_issues(JQL, startAt = 0, maxResults=1000, fields="issue key")
got = len(issues)
Using the while loop i have counted till end of the total. The above code is taking more then an hour to fetch the total count of issue for particular customfield.
The same need to done in REST API, i need to know whether its possible to collect the same issue count in restapi or not. If possible kindly suggest the restapi call using the CURL command.
Hi,
If you just need to know total issue count you can invoke GET /rest/api/2/search once and take total field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.