How to get issue count for each Project along with the last update time
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
Jira Cloud REST API can be used to fetch the issue count and the last issue update time for all the projects on a Site.
Solution
- Use the Project Search API and expand it on the Insight value.
- The API will get the count for each project. Expanding with insight will get us the "totalIssueCount" and the lastIssueUpdateTime.
- e.g
"insight": {
"totalIssueCount": 213,
"lastIssueUpdateTime": "2021-12-21T22:39:43.372+0530"
}