TFS query param "Assigned to" equals to selected user - tfs

I want to add in TFS query where parameter "Assigned to" will be equal to team member selected from dropdown list This oportunity exists in Work/Query. There will be great if I can put such query on overview.
I cannot find this option, is it possible? I'm using TFS 2015.

Derrick Fu MSFT #Brett – sorry for the frustration. With TFS2015, we
shipped a new user picking experience designed around an MRU list and
search experience. The “random” list of users you are seeing is
actually the most recent users you have assigned work items to. For
scoped person fields, we realize this is a bit of a takeback since you
no longer get a scoped list of users.
If you want, you can re-enable the old picking experience (without
MRU, search, and avatars) by running the following command on your TFS
instance: exec prc_SetRegistryValue 1,
‘#\Service\WorkItemTracking\Settings\UseTextControlForIdentityFields\’, true
This will change all person fields across the collection back to the
old behavior.
Source Link: VS2015 Update 2 and TFS 2015 Update 2 have shipped
There also has been a uservocie- Limit items in Assigned To Drop down to ALLOWEDVALUES in Web interface you can vote up it to get more attention.

Related

TFS 2015-2017 Assistance

I am new to TFS and know the basic concepts. In my case we have customized TFS a lot which contains around 17 collections, custom fields in work items etc.
I have some queries for which I require some answers. The questions might be generic, but any help or suggestions on the below queries would be great.
Following are my queries:
1.) Show Work Item ID in a specific format. Can it be done
2.) Auto Fill custom fields for a work item based on a category / linked bugs (analogous to Relative Path column type)
3.) While raising a WI through Visual Studio development tool, the datepicker only takes date value and not time. The same work items when raised through web portal the datepicker gives time value as well.
4.) Auto Fill the efforts spent in Child Work items (summation of all child link items in the parent)
5.) Reminders to be sent if iteration / scrum set date crossed. Also check for Work Items as well, if set date is crossed.
6.) Create Queries which can query across all collections / verticals. Currently queries can be made only against each entire collection, but not across all collections. Do we have any mechanism to query against multiple collections?
7.) Email alerts customizations in TFS.
8.) Can the collections be merged into 1 default collection.
I have tried to find few answers from my end as well, and would like to know, if it is correct.
1.) Work Item ID cannot be shown in a specific format as it is system generated
2.) For Auto Filling of Work Item fields, it cannot be done. Manual approach is the only way (unless there is a way to pre-populate fields
3.) One can only query for all projects in a single collection. But it is not possible to query against multiple collections and get the results.
So require assistance on the above queries and also validate the answers I have got for few of my questions.
Any help or suggestions or relevant links would be great.
Thanks In Advance!!!..
Please kindly check below inputs
You are right. This is by designed. You can not change to use other
format of work item.
Yes. This could not be done at present. It's still a user voice, but
on the Roadmap. Support for calculated fields and roll-ups.
Sorry, not get your point.You could use the DateTimeControl type to give users a calendar picker to select a date for a DateTime field. By using this control, you can quickly select a date and time for the field. For details.
You could do this from a sprint backlog or task board. Details
please take a look at our official tutorial here: Rollup of work
and other fields
We do not have this kind of build-in time reminder for work items.
However, as a workaround, There is a dashboard widget that uses #me
in its query.
You can also cobble something together using the REST API and a
scheduled build. Calling a work item query and sending email is
pretty easy from PowerShell.
No, they are using different database. You are only able to query
across team projects int the same project collection.
It's able to do this but with a little bit complicated. For detail
info, please take a look at this link: Customize TFS 2015 alert
email
There is no default way to do this. I do not think there is a
possibility of merging two TFS collections other than creating a new
collection, creating the team projects and use a tool such as TFS
integration tools to move the team projects from the source
collections.
As you can see, history will be rewritten with new dates, changeset
and work items ids etc, if you are trying to merge collections.

Is it possible to assign more then one user to a backlog item in TFS?

Is it possible to assign more then one user to a backlog item in TFS?
The main reason for this would be to track discussion board inside a backlog item. For example if user1 is assigned to a backlog item and wants to discuss it with user2, the user2 would never know that he is asked to be involved in this discussion.
Depending on the version of TFS, you can use # to mention a user, which will notify them. This is a feature in VSTS and TFS 2015 Update 2.
You can assign it to a group or a team, detail ways to achieve this, please refer the link below:
In TFS 2012 we have added the Team artifact to the product. Out of the
box a team is tied to an area path. By assigning a work item to a
specific area path you basically assign it to a team. If you use the
area path for something else today, you can also use another string
field in the work item that specifies the team
(http://msdn.microsoft.com/en-us/library/dn144940.aspx)
In case you cannot use TFS 2012 or later, you can also add groups to
the Assigned To dropdown as shown in this blog post
[http://blogs.infosupport.com/how-to-assign-a-work-item-to-a-group-and-actually-have-it-show-a-list-of-values/]
Ewald Hofman TFS Program Manager
Source Link from UserVoice: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/5221575-visual-studio-online-allow-tasks-work-items-bugs

Move multiple userstories to existing feature in TFS?

In TFS we have a feature called Inbox. All users of TFS can register userstories (idea’s, suggestions etc.) under this feature. Productowners validate once in the month all the userstories and link them to another feature. This is a manual action that takes a lot of time.
Is there a possibility to create a query, export the query to Excel, change the featureID and publish it again?
I already did some attempts but in most of the attempts the connection with the original feature was lost.
We are using TFS 2013.
You can use Backlog in TFS web access to drag User story from one Feature to another. It's very convenient.
Adding:
You are right that in TFS 2013, we can't drag items on Backlogs. But we can drag them in a query result in VS. I just tested with VS2015+TFS2013.5. Select "Work Items and Direct Links" in a work item query, and add clauses as the screenshot:
Then you can drag the User Story to any Feature in the Query result. After save the result, the User Story will go to the new Feature:
Yes you can. There is Add-in to Excel - Team Foundation Add-in. You can use it to load query results into excel(New List in Add-in tab), change come fields in the results (you can customize fields in query's Column options) and then publish the results.

Is it possible to write a TFS Shared Query with a parameter on a custom field?

I have a set of queries on the Team home page that use the standard #Me, for example to let different users quickly get to bugs they have personally raised, PBIs they created that are now in a certain state.
The users are in customer groups and I'd like to have a similar set of queries showing as tiles on the home page, e.g. "Team Open Bugs", "Team PBIs for review".
Is it possible to write a query that does this -
Select all [work item type] from [team project] where [state] and [#myCustomerTeam] ?
From what I have read so far I believe this is not possible, and certainly not possible through the UI. I'm curious to find out if anyone has solved a problem like this - having different customer groups see different Team Favorites tiles on the Home page of Team Web Access - in some other way. I'm going to try making three sets of queries and putting different permissions on them (there are TFS groups that correspond to the Customer Group field) but I'm not confident that Denying even Read permission on the query itself will stop the tile showing on everyone's homepage.
Edited to say that solution worked for my purposes, as per comment.
Still interested to know if anyone has managed something like this more cleanly. In this case the field I would have liked to parameterise happened to be something I could map to a completely different type of thing, thus shifting the problem. I can imagine wanting to parameterise a field that didn't have that characteristic though.

How to automatically assign a TFS work item to a particular person/role

I would like to customize a Work Item Type in TFS to automatically set the Assignee to a particular role. For example (to compare to another Issue Tracker), in JIRA the default Assignee is the Project Lead (so that any ticket not otherwise assigned, gets automatically assigned to whatever person is designated in the role of Project Lead). Can I do something similar in TFS?
So, I realize that one difference between JIRA and TFS is that TFS doesn't (to my knowledge) have the concept of "Roles". The closest thing to that is "Groups", but unlike Roles, Groups can have multiple people (which may be the restricting factor in this problem). I know how to configure a TFS Work Item so that only a certain Group gets listed in the "Assign To" field, but I would like to go a step farther, if possible, and create a custom Group with just one member (e.g., "Issue Guru") and then set up the work item to get automatically assigned to that person.
I'm trying to replicate the Jira functionality here, and maybe there is just no good way to do it in the TFS framework. Any suggestions?
There's a Step by Step Guide on Ivan Fioravanti's Blog for enabling it.
If you are unfamiliar with customising Work Item Types, have a look at the following links (stolen from Grant Holliday's blog).
I never tried this in production but here is something I tried quickly and it seems like it could work.
You can set the default value to a Group by editing work item template in template editor.
Just select Assigned to field and add a DEFAULT rule like shown in the image below.
This will also require you to create one or more groups (one global or maybe one per project). Once you set this up you won’t have to make any updates in the future but only manage people who are in the groups.

Resources