Project

General

Profile

Actions

Feature #32804

open

API - Include issue count/list in versions and/or filter by issue count

Added by Anonymous about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Add an option to include the version's issue count or filter by issue count in the Versions section of the API.

Useful if you are going through all the versions and displaying them in a page, so you don't have to do another request to check if the version has issues.

Include issue count :

GET /project/1/issues.<xml/json>?inlude=issue_count

<?xml version="1.0" encoding="UTF-8"?>
<versions type="array" total_count="34">
  <version>
    <id>1</id>
    <project name="Redmine" id="1"/>
    <name>0.7</name>
    <description/>
    <status>closed</status>
    <due_date>2008-04-28</due_date>
    <sharing>none</sharing>
    <created_on>2008-03-09T12:52:06+01:00</created_on>
    <updated_on>2009-11-15T12:22:12+01:00</updated_on>
    <wiki_page_title>FooBarWikiPage</version_wiki_page_title>
    <issue_count>13</issue_count>
  </version>
</versions>

Filter by issue count :

// Issue count in greater or equal to 0
GET /project/1/issues.<xml/json>?issue_count=%3E%3D0

No data to display

Actions

Also available in: Atom PDF