TFS Project not recognizing Work Item changes - visual-studio-2013

I have been tasked with updating the work item templates in Team Foundation Server for my Scrum team.
One such update is to add a field "Type" to the "Bug" work item. However, after doing so, and adding it to the layout, it is not appearing when I create a new work item, yet it shows when I "preview form". How can I get it to appear?
I've already uploaded my changes to the server, imported the changed file, refreshed the server, reopened VS, and checked the XML file to make sure it is properly formatted.
Also, when I create a new "Bug" work item and attempt to save, an error displays, saying that the "Type" field cannot be empty, which is not visible on the template.
Any help would be appreciated.

Work item forms are cached in Visual Studio for performance reasons. Try closing all your work items, refreshing Team Explorer (click the refresh icon at the top of the Team Explorer window) and then opening the work item form again. You should find it now displays as expected.
Additionally, you could look at the work item form in the web interface. You'll probably find that it is already showing correctly. Again, the web page tends to cache the form definitions, so you may need to hit F5 in the web browser to see the updates.

After much tribulation, I have solved my issue, and it was quite simple.
On the "Layout" tab of the Work Item in question, I had to change two settings. First, I had to st "Read-only and Empty Fields" to "False" and then set the field attribute of the field I was adding to "Fieldcontrol".
Everything works as intended now.

I'll share another answer for people who are encountering this issue. In my case, some test cases within a plan/suite reflected the imported changes. Others did not.
I tried a couple different alternatives. After looking at the differences between the two test cases, I noticed that the iterations were different. In fact, the unchanged Test Cases used an iteration from an entirely different Team Project.
At this point it should be noted these suites were Requirement Based. So it looks like we were somehow able to attach test cases from different team projects to the PBIs. This is why the changes weren't reflected, because the TC's were from a different Team Project.
Hope this helps someone else who may have performed a migration or some other crazy stuff like we had.

I had a similar issue after I imported the xml file via WitAdmin, after changing the STate field. Solution was I did not have any Transition items for the item.
Example, I created a new state "On hold"
<STATES>
...
<STATE value="Removed" />
<STATE value="On Hold" />
</STATES>
Then had to add below in order to see:
<TRANSITIONS>
...
<TRANSITION from="Active" to="On Hold">
<REASONS>
<DEFAULTREASON value="Waiting for further requirements" />
<REASON value="Waiting for upgrade" />
<REASON value="Need more info" />
</REASONS>
</TRANSITION>
<TRANSITION from="New" to="On Hold">
<REASONS>
<DEFAULTREASON value="Waiting for further requirements" />
<REASON value="Waiting for upgrade" />
<REASON value="Need more info" />
</REASONS>
</TRANSITION>
</TRANSITIONS>

Related

How to add custom message with alignment in Welcome message of MSI installer using wix

I used this line in wxl file to add custom message but still not able to align the version number properly
<String Id="WelcomeDlgDescription" Overridable="yes">The Setup Wizard will install [ProductName] on your computer. Click Next to continue or Cancel to exit the Setup Wizard.
{\WixUI_Font_Title}Version - [ProductVersion]</String>
I want the results to be like this
Also, I am not able to change the fonts.
Updated
I am able to achieve this. Version left hanging in the middle and not going at the end,
Limitation: It looks like you can only have one style per string. I am not sure, but it says in the documentation that you have to refer to the style at the beginning of the string:
<TextStyle Id="Test" FaceName="Arial" Blue="255" Size="12" Strike="yes" />
<..>
<String Id="WelcomeDlgDescription">{\Test}Version - [ProductVersion]</String>
Adding Controls and Text
ICE31 - validation suite checking Strings and fields (see Examples)
Customizing WiX Dialogs: You might need to change the whole dialog to add two fields so you can put the version number in its own
text box featuring its own style. Doing so is a little involved, and I have a description of
it here: Customizing WiX Dialogs. Please have a quick read. It also describes how to change font color and style.
Update: Nice little sample for how you can insert a custom dialog: Wix UpgradeVersion.

Panel collapse icon is not displayed properly

As you can see below, the icon (in the right corner) is not displayed properly.
Usually, it is an arrow down, as you can see in the showcase of BootsFaces.
My <b:panel> looks like:
<b:panel title="Beiträge (1)" collapsible="true"look="info">
How can I display the correct icon?
I am not using any specific theme and I am using BootsFaces 0.7.0.
We've had a lot of trouble with this. Most likelely the Glyphicons rource file can't be loaded.
Make sure you've added a <h:head></h:head> tag (even if it's empty). Do not use the HTML tag (<head />).
Check the URL pattern of the web.xml. Many tutorials recommend to put the JSF files into a virtual folder, such as <url-pattern>/pages/</url-pattern> . Don't do that. There's nothing wrong with simple patterns like <url-pattern>*.jsf</url-pattern>. By the way, this is the default, so you can safely omit the url-pattern altogether.
If that fails, add the CombinedResourceHandler of OmniFaces. This always does the trick for me.
Check the URL in your browser. Maybe you entered localhost:8080/index.xhtml instead of localhost:8080/index.jsf?
If you're still stuck, open an issue on the BootsFaces GitHub repository (https://github.com/TheCoder4eu/BootsFaces-OSP/issues). But first read https://github.com/TheCoder4eu/BootsFaces-OSP/issues/157 - your problem is probably already fixed there.

How to change the z-order of classes in the Visual Studio Class Designer?

Maybe I am misunderstanding what the Class Designer in Visual Studio was intended for, but I am really struggling with expanded classes being displayed behind other classes on the canvas.
I would like to have two collapsed classes, one above the other. Then when I expand the class above it should display above the class below, so that the class below does not obstruct the members of the class above.
I realise that adding my classes in the right order will do this, but I don't want to re-add all controls when I want to change layout. Where is the "Send to Back / Send to Front" button??
Not sure this is still an issue but I just had a similar problem when visualizing things in "UML-like" structures in VS 2013.
I found that a more or less simple way might be to change the order in the .layout file:
The example hopefully shows how to do:
First example - Action is "under" the Object:
<actionShape Id="..." absoluteBounds="..." customColor="...">
<opaqueActionMoniker Id="..." LastKnownName="Action1" />
</actionShape>
<objectNodeShape Id="..." absoluteBounds="..." customColor="White">
<objectNodeMoniker Id="..." LastKnownName="Object" />
</objectNodeShape>
Second Example: I changed the order. The Action is above the Object:
<objectNodeShape Id="..." absoluteBounds="..." customColor="White">
<objectNodeMoniker Id="..." LastKnownName="Object" />
</objectNodeShape>
<actionShape Id="..." absoluteBounds="..." customColor="...">
<opaqueActionMoniker Id="..." LastKnownName="Action1" />
</actionShape>
I know, this is probably not the best way to do but it's the best I found.
Hopefully it helps to anyone.
Sorry for digging up an old post, but from the looks of it there aren't any such buttons, nor have they been added in Visual Studio 2012. Based on what I found in the MSDN forums here, this has been brought up before. I'm not sure if either of the posters in that thread actually went on to add the suggestion in Microsoft Connect, since it seems to be all VS 2012 now, but I've added a request for it here. Hopefully they get around to it eventually.

R#6 - Suggests "Use directory" in razor views. How to disable?

I am using R#6 and when I edit some razor views, R#6 suggests that I "use directory".
(Whine :)) I dont want to! How do I turn off this annoyance? I have searched through R#6 options. It is definitely R# since the annoyance goes away when i suspend R#.
In the printscreen, R# wants to change /SignUp to ../Signup.
It is incorrect because the view is the layout and could be in any directory structure. So i want it to be /Signup
Solution: As derigel states.
Wait for the warning to show. Hit escape. Then CTRL+Enter. A mini menu appears where you can suppress or change the warning severity. I changed the warning severity to "do not show"
Valamas, OffBySome gave you really good advice, but you still able to disable this warning locally by comment or generally, at all. It's some UI problem here - first, press escape to disable popup, and then, press alt+enter and you will bring few options how to disable this warning.
For your url's, try using relative urls by using #Url.Content("~/images/image.jpg") and #Url.Action("Action", "Controller") instead of hard-coding the absolute / urls. I think this will resolve the Resharper issue, and also make your url's relative in case you are hosting this as a subsite on an IIS instance.
I solved it by properly entering the path.
Original
<Image Source="Images\Q_hor_pos_full_rgb.gif" Height="76" Margin="6,-3,0,7" HorizontalAlignment="Left"/>
It turns out that I had placed this xaml file in a subfolder, and that the Images folder was actually one level higher:
Main\Images\Q_hor_pos_full_rgb.gif
Main\UserControls\File.xaml
Fixed
<Image Source="..\Images\Q_hor_pos_full_rgb.gif" Height="76" Margin="6,-3,0,7" HorizontalAlignment="Left"/>
As soon as I did that, the application found the file with no problem.

How do I create a custom dialog in WiX for user input?

I'm using WiX to create an installer for a windows service. It's desirable that the name of service that gets installed and displayed in Services is configurable at install time.
For example, this is what I'm thinking (wix xml snip):
<ServiceInstall
Id="MyServiceInstaller"
Name="NAME_PASSED_FROM_DIALOG"
Type="ownProcess"
Start="auto"
ErrorControl="normal"
Description="My Service"
Account="localsystem"/>
<ServiceControl
Id="StartMyServiceInstaller"
Name="NAME_PASSED_FROM_DIALOG"
Start="install"
Wait="no" />
<ServiceControl
Id="StopMyServiceInstaller"
Name="NAME_PASSED_FROM_DIALOG"
Remove="uninstall"
Stop="both"
Wait="yes" />
NAME_PASSED_FROM_DIALOG is something I would like to hook up to a custom dialog that gets created and gets displayed to the person installing the service so they can set/modify the service name. I think this is very similar to the WIXUI_INSTALLDIR property that gets set and passed to the WixUI_InstallDir Dialog Set.
My question is:
How do I create a custom UI dialog that can accept user input which gets passed into runtime of the installer?
Have fun with UI!
Edit: The original link to answer doesn't exist anymore. FireGiant (the maintainers of Wix) some examples for part of this process, but it's doesn't completely answer this question. There is one further tutorial (UPDATE Aug.2018: Link resurrected from Wayback Machine) that does go most of the way to answer this question.
A high level overview of what will be happening is:
Create a property
Have the UI control set this property
The name attribute on the service will reference the property, ie [ServiceNameProperty].
However this is complex, and the way that is suggested to create a new UI dialog, is to take an existing dialog, make a clone of it, and then edit with new text, controls and use it to populate the property.
Try to use
WixEdit
that is nice tool for creating UI

Resources