I wanted to query all defects and stories that were blocked between a given time range.
Seeing that User Stories (AKA Hierarchical Requirements) and Defects are both descended from the proto-type Artifact, I had hoped I could query against Artifacts and get objects of either type that met the criteria. Both Defects and User Stories have an Iteration field. I hoped to ask for all Artifacts contained in particular Iteration.
The query:
(Iteration.Name = "Sprint 2 - Blocked Work Duration Summaries")
... works fine for both Defects and User Stories, but when I try to query at the Artifact level, I get this error:
Could not read: could not read all instances of class com.f4tech.slm.domain.Artifact for class Artifact
Can some wise soul propose a better approach to this? I can imagine some tedious, messy approaches, but would love to learn if there is a well known idiomatic way of tackling this.
Thanks, in advance, if you have some wisdom to share.
Mike