It's all about the answers!

Ask a question

Question on how to filter out parent work item from plan view


Aradhya K (1.4k54345) | asked Sep 10 '12, 6:35 a.m.
JAZZ DEVELOPER
edited Sep 10 '12, 6:43 a.m.
 1. Create a PA with Scrum
2. Create work item categories as below (same structure)
       Category1
          SubCategory_a
               SubCategory_a1
          SubCategory_b
3. Create work items as below (same structure) and set FileAgainst as showed in (xxx)
       Parent (Category1)
            Child1 (SubCategory_a)
                Child1a (SubCategory_a1)
            Child2 (SubCategory_b)
       Test1 (Category1)
4. Set the "PlanedFor" to "Sprint 1 (1.0)" to all work items created in step 3.
5. Open Sprint Backlog in Web UI
6. Select "Expression" as "Filter" option and specify as below
       FileAgains:Category1
<Result>
   Only "Test1 (Category1)" is filtered out
<Customer's expectation>
   "Parent (Category1)" is also filtered out as well as "Test1 (Category1)"
7. Change the Display type to "Taskbord"
 <Result>
    "Parent (Category1)" and "Test1 (Category1)" are filtered out which is expected behaviour

Please let me know the following:

1. Is the result of my test step 6. above is as designed?  i.e., Even the filter is set to filter out the work item, if it has child work items and the "Display" is set to "Tree", the parent work item is not filtered out.

2. There is attribute called "parent:" in the available attribute for expression.  What would be the value for this?  Please let me know the example.
    Please see Filter_out_parent.png

3. I have checked the following documents but could not find the one which explains about the available operators  (&&, |, ˆ, !, etc)  and has more examples for each
   available attributes.
    - https://jazz.net/wiki/bin/view/Main/QuickQuerySyntax
    - http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.team.apt.doc/topics/t_find_filter_colorize.html
    - https://jazz.net/library/article/197
    - https://jazz.net/library/article/588
    - https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/218851

   Please let me know the available operators and examples of how to specify the followings:
     1) Priority is "High" or "Estimate" is more than 2 days
     2) Owner is NOT "user1"

One answer



permanent link
Aradhya K (1.4k54345) | answered Sep 10 '12, 6:36 a.m.
JAZZ DEVELOPER
 please find my answers

1. Yes this is works as designed. When the view selected is tree then the complete tree will be rendered irrespective of weather the work item belongs to the plan or is filtered. One thing can be done to improve the usability here. Like out of place work items have the indication that the work item is placed here to complete the tree but does not belong here, we can have some indication that this work item is filtered but still shown to complete the tree.
2. The customer wants a tree without the parents? Examples for the parent attribute are listed by typing ctrl + space. parent:set or parent:1 will filter out all the work items that have parents. parent:unset will filter out all the work items that do not have parents child link. If a work item has a child then it will not be filtered with the expression parent:unset. The same explanation of answer to question 1 holds here as well. Even if the work item is filtered, if it is required for completing the tree it will be displayed.
3. The filters are always been the exclude filters. The use case you are trying here is to provide the include filter. This is not something that is done currently. The && (and) of 2 filters is simple. Add to filters and then select both of them. This will give the "and" effect. The "or" condition or merging of 2 conditions like we do in the query is not something that is intended for the filters. One expression filter can only filter based on one attribute and not the combination of 2 or more expressions.

Does the above explanation give more clarity? I know that the answers are not quite positive, but the filters are not designed to be used this way.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.