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

How do you add workitemList attribute to a query as a filter?

My team uses a workitemList attribute as a multi-select field since we want to tie another work item type's records to this work item. This is perfect for our requirement because it allows us to tie multiple values to these work items and re-use existing records.

Our issue:
How can leverage the workitemLIst attribute in a query? When we add that attribute to our query, it has a pre-defined list of work items that don't really apply, and what I'm essentially trying to do is return records which do not have an empty workitemList attribute...can this be done?

0 votes



One answer

Permanent link
Hi Samir

Adding the attribute condition "Work item List" attribute "exists" should display what you are looking for.



But this seems to return all Work Items.
I think it should work similar to Example 4 in the following article
https://jazz.net/library/article/1007/#custom

 I have raised a defect on this to get an answer;

0 votes

Comments

HI Shubjit, thanks for looking into this. I took a look at the article you posted and it seems that the "exists" option finds all work items that have that attribute...which technically should be all work items...I'm not really sure that is a useful function if that's how its designed. I would think its more in line with what you mentioned where "exists" should find any work item that has the attribute and has a value associated to it...I look forward to hearing back on the defect!

Your analysis is right, the defect was closed with the clarification:
"Exists operation checks whether the attribute exists or not. Its not for existence of the value."

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
× 26

Question asked: Jun 24 '13, 9:55 p.m.

Question was seen: 5,722 times

Last updated: Jun 27 '13, 9:35 a.m.

Confirmation Cancel Confirm