Visual studio online query items without tags - tfs

When are working with various Work Item types (user stories,Tasks, etc) we assign tags to reference the area of work. This makes it easy to filter the Backlogs items view to find any related stories.
I would like to build a query to identify Work Items where the tags have not yet been assigned.
I know this can be achieved using excel and filtering, however I specifically would like to do this using the queries. Is this possible??
Thanks in advance for any assistance.

Firstly, I have to say that it is not possible to create work item query to show work items which don't contain tags. As you see that the Operator for Tags is Contains or Does Not Contain, it is not possible to use these two operators to filter out these non-tagged work items.
Secondly, as you have more than 100 tags, it is not an effective way to use "Does Not Contain" operator to exclude all tagged work items.
So,
How about you adding a 'Null' tag to all non-tagged work items to specify that these work items don't have any tags? With this approach, you can create a work item query with Tags Contains Null to list these non-tagged work items.
If you don't want to take this approach, you need to work with excel just as you mentioned above, or take Dave's advice to work with API.

Related

Using endsWith filter together with expanding user's memberOf doesn't work

I want to fetch all users together with their group names from MS Graph API.
It works as long as I don't want to do some advanced filtering (endsWith()).
Here's the select query I'm running:
https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName,mail,id,givenName,surname,memberOf&$expand=memberOf($select=displayName)
It produces a nice set of users together with the display name's of groups they are in.
I wanted to restrict the result to a specific mail domain (i have added ConsistencyLevel: eventual), however I am unable to do it unless I remove the memberOf expand. This works:
https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName,mail,id,givenName,surname,memberOf&$count=true&$filter=endsWith(mail,'#somedomain.com')
But as expected, there are no groups. In fact, there are no groups at all despite selecting memberOf! I thought I'll just fetch groups first and then pair them in my code, but to get them I must expand, and with expand the filter doesn't work!
This produces an Request_UnsupportedQuery error:
https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName,mail,id,givenName,surname,memberOf&$expand=memberOf($select=displayName)&$count=true&$filter=endsWith(mail,'#somedomain.com')
Is there any way to achieve what I want without filtering manually or issuing multiple requests and mapping stuff on my own? We're talking about directories containing tens of thousands of users.. Graph seemed to be nice at the beginning but as I wanted to do anything more complex it turns out to be a limited POS where one query totally excludes another. I was also unable to filter by the expanded memberOf in any way
Based on Microsoft Docs
$expand is not currently supported with advanced queries.

In Twitter, how to filter the results of a list?

I have created a list - LL (for linguistics list) - containing 2 members :
languagelog (http://languagelog.ldc.upenn.edu/nll/)
languagehat (http://languagehat.comBut i
The list, of course, works fine. But suppose I would like to :
exclude languagelog's tweets containing "chinese"
include languagehat's tweets only if they contain "russian"
I know how to do that with one search operator :
(from:language log -chinese) OR (from:languagehat russian)
but it seems it could be interesting to do that via lists, which would allow longer and more complex searches (it might even become a sort of substitute for yahoo pipes, although a very simple one).
Is it possible to include search operators in lists ?
Thanks in advance
This is the correct search query for the separate accounts:
(from:languagehat OR from:languagelog) lang:ru -lang:zh
If you'd like to do similar with a list:
create a Twitter list and add the accounts you need into it.
click on your list and copy the list ID from the browser's URL line the list ID.
in the query below, replace [list_id] with your copied list IDlist:[list_id] lang:ru -lang:zh
paste the query in Twitter's search box
Of course, as you suggested, you can build longer and more complex searches on that list.

TFS query for tasks with no parent

I would like create a Flat list of work items query in TFS in which the results contain all of the specified PBI and Bug cases and any Task cases that have no parent.
It's that Task with no parent part that has me perplexed. I cannot see a way that I can do what seems so obvious such as (Parent Link Count = 0) because that attribute is not exposed to me though, strangely, some other link type counts are.
Any ideas?
You need to change the type of your query to the Direct Links query, then choose the option to pull back all work items without any matching links. The results will still be a flat list.

I saw author/media$credit tag using list, is it possible multiple authors on same channel?

Example, http://gdata.youtube.com/feeds/api/users/google/uploads?v=2&start-index=1&max-results=50&alt=json,
"author":[{"name":{"$t":"Google"},"uri":{"$t":"http://gdata.youtube.com/feeds/api/users/Google"},"yt$userId":{"$t":"K8sQmJBp8GCxrOtXWBpyEA"}}]
"media$credit":[{"$t":"google","role":"uploader","scheme":"urn:youtube","yt$display":"Google","yt$type":"partner"}]
Both author and media$credit tag is a list, so is it possible index 1 on the list? If it's impossible, why list?
Thanks
I'm not aware of any scenario in which there would be multiple values returned for those fields. I can't say for certain why it's a list and not a single element.

jQuery UI Sortable “Keep Together”?

I have a list of elements that work fine with jQuery UI sortable, but now I want to be able to group some adjacent siblings together. Is there a direct way of doing that, similar to the way a rich-text document has a keep-together or keep-with-next attribute on paragraphs?
For example, if I have items 123456, what’s the best way to keep 2 & 3 together, so that a) If I drag either 2 or 3, then they move together and b) It's not possible to drop something between 2 and 3?
My solution was to add a wrapper around the grouped elements with help from jQuery methods replaceWith() to remove the wrapper and wrapAll() to wrap the group. This requires some juggling if what you start with expects the individual elements to be direct children, but if you're referencing those elements by a class selector, it should go pretty easily.
I also wanted to be able to optionally lock the first and last items in place, and the solution there was to get a subset of the direct children and omit or include the first/last elements via slice().
If there's enough interest from anyone other than me, I’ll post some example code fragments.

Resources