custom control for TFS work item type - tfs-sdk

I will explain my question with an example. Lets consider TFS "Bug" work item type. In the bug work item type there is a "Developer" and "Tester" dropdown. Using the inbuilt rule types we can only assign "VALIDUSER" to each drop down. This displays all the windows user in the drop down. I want to be able to create a custom subteam under "TeamMembers" node and assign members to the sub team. For example as shown in the below snapshot:
alt text http://www.imagechicken.com/uploads/1267041644094323600.png
The "Developer" drop down should display users from the new "Developer" subteam and not all the VALIDUSER. Similarly "Tester" drop down should display users from the new "Tester" subteam.
alt text http://www.imagechicken.com/uploads/1267042457029195500.png
I am thinking of creating a custom work item control and then call the TFS API to fetch the custom subteam members.
If anyone has worked on this before or have any better (and simple :)) ideas to achieve the above please suggest.
Update
I just created a custom work item control and called TFS API to get the list of members in the custom group. So this is done. But I would still like to know if there is a better way to achieve same results.

Well..There is a better way to do the same.. Thanks to Marcel !!
how-to-assign-a-work-item-to-a-group-and-actually-have-it-show-a-list-of-values

Related

How can i create a list to select from for a property on my user control?

I have a property on my user control called 'DataGridViewColumnType' and wondered if it was possible to make it a drop down and a list of column types to choose from? Even if it was just a list of strings would be good enough.
I have been playing with the attribute
<Editor("System.Windows.Forms.Design.DataGridColumnCollectionEditor, System.Design", GetType(UITypeEditor))>
But not having much luck and not sure it'd actually do what I want even if if I could get it to work. It just opens a column collection editor but the add button doesn't work and i haven't been able to get it to work so couldn't get any further.
So i thought if I can just create the list myself then somehow turn my property into a drop down that displays my list that would be fine. I just haven't done this before and can't seem to find much on how to achieve it.

Data entry form in sharepoint

I was wondering if anyone knows what a simplest way to create a data entry form in Sharepoint 2010 Foundation would be. Basicly I am looking to create a form that will submit its data to a custom list on the site, I don't want the users to interact with the list directly but use the form to enter data instead.
Also I can't use Designer or InfoPath, not being able to use these is what is causing the problem it seems. Just curious if anyone else has done something like this or could point me in the right direction.
Thanks
Every list is born with forms by default - one for item creation, one for edition and one for displaying. If you use content types, then you get a trio of these for each different type.
You never interact with the list directly, you do it through these forms. If you can't use either Infopath nor Sharepoint Designer, you can still edit them by clicking on the Page tab, then the Edit Page button. From there you can add or remove web parts, and connect them among themselves.
However, the amount of control you have is too limited when compared to editing pages through either of the tools or mentioned, or Visual Studio. For example, there is no straightforward way to add or remove list fields based on content type. Be prepared for ever increasing frustration if you can't use those tools.

Is it possible for a Command Button to show another Command button in Access?

Access novice here. I've been using it for about a week now, and can do most things with enough googling and trial and error.
One question though, I have a form that Im using to add participants into the database. At present, i have 2 buttons, one that opens the MALE add user form, and then another button which opens the FEMALE add user form.
What i was wondering is, is it possible to create a main button (called "ADD USER" for example), that when pressed, shows the two other MALE and FEMALE buttons for the user to choose from?
Sorry if that makes no sense. Basically, can I make a button that when pressed, makes two more buttons visible?
Thank you for any help!
Yes, there are way to do this:
you could create those m/f-buttons and make a function which toggles visibility of your buttons on execution of addUser-button.
you could make an additional dialog, which is called by addUser-button
but my suggestion would be - use radio-buttons for male/female and their setup to execute addUser correctly ;) mainly, because I find this more intuitive and efficient.
like this, now you can access those to know which one is selected, or you can use a global variable or a property to be setup by those radio-buttons and then accessed by other objects, like an addUser-Button.
Hope this was clear enough - just try and look into those suggestions to find your way ;)

Multi-select from dropdown on custom field on User Story

Currently I have a custom field on User Stories and Defects for our developer to tag what system was affected with their code change. Currently I only see a drop down, which is a single selection. Is there any way to give them the chance to multi-select options in the drop down? Or is there another object that would work better? Thanks in advance for all the great help I always get on here :-)
Your best bet to emulate a multi-select custom field is to use Tags. If you are managing these stories and defects with a custom App you could restrict which Tags you show or allow them to choose from in that App.
As Charles indicated, you probably want to try to use the MultiObjectPicker or the TagPicker, that extends it. If you want to stick with the ComboBox, then you can enable multi-selection by setting the "multiSelect" config field to "true".

Assigning a custom workflow to a work item type in Rational Team Concert

I'm in the process of customizing Rational Team Concert to include a custom work item type. As part of the testing of the work item type as I created it I populated a few of the custom work items with data. As I enhanced the custom work item type and added additional attributes I was able to use the "Check attributes usages in repository" from the "Types and Attributes" to ensure that the new attributes were propagated to my test work items.
Now I've gotten to the point where I need to create a custom workflow for this work item type. I've defined the workflow and and assigned it to the work item type, but my existing test work items can't seem to use it. Clicking on the "Check workflow usages in repository" link says "There are 9 work items in the repository referencing workflow states or resolutions that are not present in the bound workflow. Do you want to show these items in the Work Items view?".
The workitem view then just says that status = 1 for the test work items.
If I select a work to open in the rich client editor all of the process elements are inactive. If I open it in the web editor, it says that the status is "1", as shown below:
Is there any way to fix this and change the workflow of existing work items? I should add that new work items work just fine, but I'm worried about what might happen if I need to update the process again in the future.
In the context of work item customization, you have to manually sync existing work item attributes with the most recent version of the PA in order to take your changes into account.
The steps are detailed here in the manual page "Defining work item types and attributes":
(bottom of the page)
To manually update existing work items with new or modified custom attributes:
Run a query so that the query results contain all the work items that you want to update.
Note: Do not select any relationships to be shown in the query results.
If relationships are shown, the Type icon is not displayed and you cannot complete these steps.
To clear all relationships shown, in the Work Items view menu, select Relationships, click Deselect all, and then click OK.
In the Work Items view, select the work items that you want to modify.
In the row of one of the selected work items, right-click the Type icon and select Synchronize attributes.
Thanks.
Eric.