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?
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?
One answer
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;
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;
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."