index > Team Foundation Server - Work Item Tracking > Get List AssignedTo and Priority

Get List AssignedTo and Priority


Hello how can I get a list of all valid "assigned To" users, and a list with all priories?

I can't find it in the WorkItemStore?

WorkItemStore store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));

Thanks!

regards

Simon




Simon
Simon Gorski

One way would be to get all the allowed values of "AssignedTo" field.

WorkItemStore store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));

Smitha S Saligrama

Hello!

Thanks a lot!

Regards

Simon




Simon
Simon Gorski

Hi Simon,

The list of allowed values for a certain field is specific to the state of a certain work item. Therefore, the WorkItemStore cannot expose such a list since all values are not valid at all times and for all work item types.

Smitha's code shows you the way to get the list of allowed values for a field - per workitem.

Thanks,
Karthik




Karthik Subramanyam
Karthik Subramanyam
reply 4

You can use google to search for other answers

 

More Articles

Synchronizing workitems with 3rd-party defect tracker?
Actions and fields of work items
make Task Link tab as a required field
Resource Names in Project empty
How does the Excel application know the URL of the team foundatio...
How do I delete a task?
Check in action in work items
Error connecting to TFS from MS Project
Deadline in Tasks?
Open WorkItem Editor
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Does VSTS support dynamic Query?
Office table Pivot
Work item Action list
Any way to e-mail bugs to the server?
Contains operator for WorkItem HTML fiel…
Is there any way to assign two resources…
How to get the list of valid users in a …
Upload Bugs Database
New work item ticker tool?
Outdated Work Items - Saving not possible
Witimport - Replace or add... or an easi…
Customizing the trigger of the workitem …
How to create dependency among work item…
Getting WorkItems by Project Name from T…
How to Import/Export WorkItems in TFS-RTM

Hot Articles

Automate "Add solution to Source co…
help with wiqlQuery
MS Project/TFS work items won't move whe…
About Work Items
Import change history into TFS
MS project problem
what happens to the old WIs after using …
How to autofill field value from other f…
Project 2003 Integration Problem
Changes are not shown in the Form
Getting the server names cached on the l…
Areas on Scenario
Used witimport and now getting 'Item has…
Work Items created in VS 2005 do not ape…
Label Report of work items and files

Recommend Articles

Nested conditions in WIT definition
Query results window is cached ?
Using a Version Label in a WorkItem
Making the query find items without a re…
TF26027 error after work item import
Email notifications for other bugs than …
How to implement AssignTo combobox
Deadline in Tasks?
MS Project Mapping Problem
Team Queries in Custom project template …
How To Temporarily Disable Field Validat…
Can't see new work items in Project Portal
Custom Work Item Controls - How can you …
MPP Resource Name Issue
Where to get the hotfix for "This i…