How to filter work items returned by type #1294
-
First of all absolutely LOVE this extension, game and indeed life changer. I have it working just the way I want, but I'm struggling with combining the handlebar syntax with how to logically only display what I need. My question is, how can I filter the work items I return by work item type? I don't want to include tasks in the list. I have the standard section below:
But I want to not include a row if 'System.WorkItemType' == "Task". I'm guessing you can either specify in the query somehow, or there is some way to include a logical operator by using extensions. There's lots of examples about how to do string comparisons on the internet like this one https://stackoverflow.com/questions/34252817/handlebarsjs-check-if-a-string-is-equal-to-a-value but they didn't work when I translated them into the required syntax (I think), like this:
and then in the template
But all I get is "no worky" :) Can anyone think of another way to do this, or something I'm missing? Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should be able to do it all within the template, no extra extension needed. Something like
The comparison is done using one of the helper functions I include |
Beta Was this translation helpful? Give feedback.
You should be able to do it all within the template, no extra extension needed. Something like
The comparison is done using one of the helper functions I include