Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Am using Jira cloud, how can I get the issue count for each issue type?

Abdul Allautheen January 26, 2018
Am not familiar with Rest API. I need this count in a filter so that I could use in dashboard. Appreciate help

2 answers

0 votes
Abdul Allautheen January 29, 2018

Appreciate your answer Branden, however, I could understand how to use your suggestion as  I haven't used Rest API in the past . Any clues appreciated. Thanks in advance

 

Regards

Abdul

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 26, 2018

Hi Abdul,

When you perform a search using the /rest/api/2/search endpoint you will get results that have a total such as the following:

{
  "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"
    }
  ],
  "warningMessages": [
    "The value 'splat' does not exist for the field 'Foo'."
  ]
}

You could extract that value from your queries and use that in your filters.  Hopefully that helps.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events