Using Work Item Id as parameter for a data set
Hi,
I'm still struggling with the Jazz Data Source related to Work Items Ids. Within a data set it's possible to create a kind of SQL in clause on string fields like WORKITEM_ITEMID. This works as expected and helped me many times in the past designing my reports.
Now I've the problem that I need to define a report based on WC_STRING_EXT which contains the Work Item Id (WI_ID) but no not the item id. As an input parameter I've got a couple of Work Item Ids but it's obviously not possible to create an IN-CLAUSE on integer fields. Am I right with this or is there a way which I didn't really see here?
Thanks for your help
Matthias
Accepted answer
Hi Matthias,
Unfortunately you are correct, you can't use the same trick to use the in-style clause with integer fields. Without knowing more about your report I don't know for sure, but often in cases like this where we need to fetch a number of work items by name/number/id, we use a table embedded in a table (in the report design) kind of like a for loop - the outer table produces a row for each work item, the inner table calls WC_STRING_EXT for that particular row, passing the id for that row as a parameter. You can hide the table from the output, and store the results of each row into a javascript array. Just a thought.
james