-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
3
-
Issue Summary
At this time, there's no possibility of retrieving the total number of issues, projects, and issues per project via the UI.
Steps to Reproduce
For instance, for the project count, navigate to the Cog icon - > Projects
Feature Request for the Issue Navigator - https://jira.atlassian.com/browse/JRACLOUD-45639
Expected Results
The total number of projects should be displayed.
Actual Results
Paginated view, that doesn't show the number of projects across the instance.
Workaround
You can make use of a couple of API calls to retrieve the requested information - for all the endpoints listed below, you'd need to create a user token, by following the steps outlined in the Manage API tokens for your Atlassian account article.
- In order to retrieve the number of projects in your instance, use the Get projects paginated endpoint, sample curl request below (in the response body, you'll see a "total" number of projects):
curl --request GET \ --url 'https://your-domain.atlassian.net/rest/api/3/project/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
- In order to retrieve the number of issues per project, you can follow the How to get issue count for each Project along with the last update time article, which basically comes down to using the above endpoint again, with the slight difference of adding an additional parameter, as per the sample below:
curl -G -d expand=insight --request GET \ --url 'https://your-domain.atlassian.net/rest/api/3/project/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
- In order to retrieve the total number of issues, you can make use of the Search for issues using JQL (GET) endpoint. The sample curl request w/o JQL should show a total number of issues across your instance:
curl --request GET \ --url 'https://your-domain.atlassian.net/rest/api/3/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
Please consider the above only as examples.