It's all about the answers!

Ask a question

Unable to query on custom enumeration attributes.


Kevin Kingsbury (611310) | asked Feb 12 '09, 11:39 a.m.
We have a number of custom attributes defined for our work items. Some of those custom attributes are enumerations.

When I try to do a work item query using the custom attributes that are enumerations no work items are displayed. However, queries on the other custom attributes that are strings appear to work fine.

Is there something that needs to be done to get the enumeration types to be queryable?

Our jazz server is running version 1.0.1.

Thanks,
Kevin

3 answers



permanent link
Patrick Streule (4.9k21) | answered Feb 12 '09, 12:28 p.m.
JAZZ DEVELOPER
We have a number of custom attributes defined for our work items.
Some of those custom attributes are enumerations.

When I try to do a work item query using the custom attributes that
are enumerations no work items are displayed. However, queries on
the other custom attributes that are strings appear to work fine.

Is there something that needs to be done to get the enumeration types
to be queryable?

There is a current restriction that only one custom attribute can be used
in an AND condition:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/54771

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Kevin Kingsbury (611310) | answered Feb 12 '09, 12:33 p.m.
Thanks for the reply Patrick.

So some additional information in the testing that I have been doing.

We have other custom attributes that are enumerations. They appear to work properly when querying against them. It is only this particular enum attribute that does not work.

I have looked at the process configuration source for the project and there is no differences between the enums that work in the query and the enums that do not work.

Is there anything else I can check to verify that the custom attribute is setup properly.

BTW - we are currently only querying against a single custom attribute. So I dont think we are running into the issue you described.

Thanks,
Kevin

permanent link
Patrick Streule (4.9k21) | answered Feb 13 '09, 4:28 a.m.
JAZZ DEVELOPER
We have other custom attributes that are enumerations. They appear to
work properly when querying against them. It is only this particular
enum attribute that does not work.

I have looked at the process configuration source for the project and
there is no differences between the enums that work in the query and
the enums that do not work.

Is there anything else I can check to verify that the custom attribute
is setup properly.

When you see the attribute and its value set both in the Work Item Editor
and the Query Editor, it seems to be set up correctly.

I am not aware of any other issue when it comes to querying enumeration
attributes.
Can you post the enumeration definition XML snippet here? Maybe I can spot
something.

--
Regards,
Patrick
Jazz Work Item Team

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.