Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can you query for unassigned literal on a custom attribute?

In RTC 5, I put a custom attribute with a custom enumeration into my Story workitem type.  The new enumeration has an unassigned literal ("Unassessed") which is also the same as the default literal.  The attribute is required only at later stages of the workflow, but not initially.

We've added this new attribute late, and we have several stories already "in flight".  We tried to create a query to show us all the Stories that have the attribute set to "Unassessed".  Nothing came up, even when I could look at one particular story that is indeed Unassessed. 

Strangely, in the query builder, I don't have the "Unassigned" checkbox for this attribute, maybe because it is required at later points?  And I see the "exists" option for the attribute (in the same popup as "is" and "is not"), but there is no "not exists" option there.

How can we create this query?

1

0 votes



2 answers

Permanent link
I don't see an "unassigned" check box for any enumeration.

Because you have to specify a default attribute, an enumeration seems to be always assigned. I think the unassigned literal might just be there to be able to enforce a required value.

But the literal itself shows up as choice in the condition, so you can only select that and it should show the ones that have this value. I have never seen any difference between custom and built in enumeration type attributes.

0 votes

Comments

I do see the unassigned literal in the list of choices in the query builder, but when I select it, I get no results in the query.  I ran a query of all stories, without filtering by the new custom attribute, and simply displayed it in the results.  It shows as "-" for the ones I'm looking for, which seems like "null" or "empty" to me, but I have no way to filter on "null".

This is what I see. There is no unassigned, but all the literals. Maybe we talk about different things?



I see the same sort of thing.  The problem is that if I choose "Unassessed" (for my custom attribute, this is the equivalent of "Unclassified"), no results appear, even though I have several stories set to "Unassessed".


Permanent link
I am not sure, but I would say that, as happened to us :
  1. You don't have the unassessed because the default value makes it impossible.
  2. Your existing Work Items don't have the default value because it was added after they were created.


If that is your problem, I suggest working in two steps :

  1. Remove the default value ; then you should be able to query the unassessed, and mass-modify your Work Items.
  2. Then restore the default value you want.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 201
× 102

Question asked: Jul 23 '15, 9:07 a.m.

Question was seen: 4,174 times

Last updated: Jul 23 '15, 3:26 p.m.

Confirmation Cancel Confirm