Rally features Kanban Boards and Work Views where query results can be grouped.
Similarly, can we issue WSAPI queries to group our results?
This article is an introduction to how to use WSAPI to Group your results. There may be more to this ability beyond what is discussed herein.
WSAPI can be used to group query results of artifacts. Grouping query results can only be done either by a standard (out of box) drop-down field or by 'constrained objects', that is objects that have a one-to-one relationship to your query endpoint/s.
Grouping can not be done by custom fields (even if a simple drop-down), or by objects that have a one-to-many relationship with your query subject.
Let's examine a few examples:
1. Can we group defects by a custom drop-down field? No. Custom fields can not be used for grouping.
2. Can we group user stories and defects by owner? Yes. Owner is a standard field that belongs both to defect and hierarchicalrequirement, also it's a 'constrained field' - it has a one-to-one relationship with these artifacts.
3. Can we group a TestCase by its TestCaseResults? No. A TestCase has a one-to-many relationship to its results. Only 'constrained objects' can be used for grouping.
4. Can we group Artifacts by their Tags? No. all artifacts have a one-to-many relationship with tags.
To find out the type of relationship your object/s have you will need to examine the WSAPI endpoint (or endpoints) you query, locate the field you intend to group-by and see if it is either an out-of-box drop-down or a reference to a constrained object that has a one-to-one relationship with your object. Below we show the above 3rd example: See the 'Results' field of the TestCase endpoint, it tells you a one-to-many relationship. This will be how you find this out:
<Please see attached file for image>