Querying on Custom attributes of WorkItem
Hi ,
From one of my previous posts I understand that RTC 2.0 provides better querying capability on Custom fields.We would like to query on a custom field of the workitem. For example, if there is field called "Platform" , when I try to use "exists" on that field, it is ignoring the condition and retrieving all the workitems.
Please suggest?
Thanks,
Bharath
From one of my previous posts I understand that RTC 2.0 provides better querying capability on Custom fields.We would like to query on a custom field of the workitem. For example, if there is field called "Platform" , when I try to use "exists" on that field, it is ignoring the condition and retrieving all the workitems.
Please suggest?
Thanks,
Bharath
11 answers
From one of my previous posts I understand that RTC 2.0 provides
better querying capability on Custom fields.We would like to query on
a custom field of the workitem. For example, if there is field called
"Platform" , when I try to use "exists" on that
field, it is ignoring the condition and retrieving all the
workitems.
Please suggest?
The 'exists' operator allows to find all work items that have the custom
attribute (which can be all). This operator does not need any values (the
value list should actually be disabled -- there is a work item for that).
For regular queries, you would use the default 'is' operator, e.g.
"Platform is 'OS X'"
--
Regards,
Patrick
Jazz Work Item Team
The 'exists' operator allows to find all work items that have the custom
attribute (which can be all). This operator does not need any values (the
value list should actually be disabled -- there is a work item for that).
This is exactly what I need. But using 'exists' operator didn't disable the value list. Is there something we need to do?
Thanks,
Bharath
So what is the way to query for all work items which have a non-empty
value for a custom text field?
There is an 'Unassigned' text box in the condition field of the Eclipse UI
-- in the Web UI, 'Unassigned' is part of the values in the list control.
Select that and choose the 'is not' operator
e.g.: MyCustomString 'is not' 'Unassigned'
--
Regards,
Patrick
Jazz Work Item Team
Ahh - I don't use the Eclipse UI much - I do see the unassigned checkbox there and it does work as expected. However in the web UI I do not see a list to choose from. I only have a textbox to enter the text value in. The field is of type small string.
Have you seen this actually work for a string field in the Web UI? Some lightweight digging in filed work items did not immediately lead to one for this issue.
I'm using FF3.5, when going to IE8 - I get a "loading..." in red text above the text field in the query that never goes away.
BTW - I think the "Version (Bugzilla)" field in the RTC project (jazz.net) is a text field. Querying against showed me the same.
Have you seen this actually work for a string field in the Web UI? Some lightweight digging in filed work items did not immediately lead to one for this issue.
I'm using FF3.5, when going to IE8 - I get a "loading..." in red text above the text field in the query that never goes away.
BTW - I think the "Version (Bugzilla)" field in the RTC project (jazz.net) is a text field. Querying against showed me the same.
Have you seen this actually work for a string field in the Web UI?
Some lightweight digging in filed work items did not immediately lead
to one for this issue.
You are right, it is actually missing for strings. This is
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/42069
--
Regards,
Patrick
Jazz Work Item Team
page 1of 1 pagesof 2 pages