How to delete a work item in TFS 2012? - visual-studio-2012

This has been asked before but I'm struggling to find a way to delete a work item in Team Foundation Server. This looks promising:
http://devmatter.blogspot.co.uk/2009/04/deleting-work-items-in-tfs-ui.html. But no luck with it so far.
First tried the following command:
witadmin destroywi /collection:"https://<<my TFS collection>>" /id:1223
It returned Unable to destroy work item(s) 1223. TF237090: Does not exist or access is denied.
Unfortunately I can't download the "Delete Work Item" utility mentioned in the article due to work's internet restrictions as it's on Skydrive. Also tried the "TEK workitem" extension (mentioned in a comment at the bottom) but this won't let me either as I'm not a Project Collection Administrator.
Am I doomed to be stuck with this work item forever or is there any other way?

Yes it's a little annoying. Setting the item state to "Removed" will at least hide it from view.

Related

How do I issue a code review in TFS after I have already checked in code?

In Microsoft Visual Studio 2012, there is a pretty good TFS (Team Foundation Service) and in this TFS, you can request code reviews of your work among your peers.
The bad thing is that if you have already checked in your code, it complains and it does not allow you to issue a code review since it sees no changed in the code you have been working on locally.
How do I issue a code review in TFS after I have already checked in code? Can I do it somehow as a comparison to a set of code I checked in earlier? If so, how?
You can right click on a changeset in View History and click Request Review.
There are also links from the View Changeset panel in team explorer.

Changing the "My Code Reviews & Requests" in TFS 2012

Somehow I have changed the TFS 2012 query that is used for code reviews. This query can be found under "My Work" in VS 2012 towards the bottom. I can see the guts of the query by selecting "open query" next to the title "My Code Reviews & Requests" and then selecting "edit query". However, it is not possible to save this query in a way that will change the "My Code Reviews & Requests" or at least I can't see it.
The issue that I have is that someone the query has been changed from the default and I don't know how to get it back to the default. This issue is isolated to me and this specific TFS instance. I can connect to a different TFS instance and see the default query using the same steps as above so I am relatively certain that this issue is related to a specific TFS instance and not my local machine.
Try voting on this Microsoft bug to see if it pushes for an improvement in TFS design by allowing more control over the queries generated by the My Work view:
Queries listed under My Work cannot be corrected
You don't mention how you change that so as I guess you customize the process if so? Of course this happen to existing project but as I guess it will not happen for new project??? if so you can download the existing project that has the issue and create new project using the same process template and try to compare the 2 process to know what is the different and how you can change that.

Sharepoint WSPBuilder Feature Update

I have two webparts that currently have the default "MyGroup" property in the elements.xml file. I'm simply trying to change these values to something more descriptive by updating both the Group and QuickAddGroups property values; rebuildng my dll, uninstalling from WSPBuilder and then re-deploying (using WSPBuilder). However, this does not seem to work. I still see the old property group listed. I've also tried manually deleting the webpart from the webpart gallery page to no avail. What do I need to do? Is there an stsadm command that I should run, perhaps -uninstallfeature or -deactiveatefeature?
Aside from making sure you get it right the first time, manually deleting the web part from the gallery is probably your best option.
If that doesn't work, it may just be the ordering - try deactivate the feature, delete the web part, then activate it again. Also check that the elements.xml in the 12 hive contains what you expect - occasionally these things refuse to update for no apparent reason.

Sharepoint Designer 2010 won't display lists of libraries

Not quite sure what I've done to screw up SPD2010 (was working), but it displayed
Sharepoint Designer cannot display the item
What you can try:
Click refresh ... blah
Most likely causes
The file has been deleted from the site
The site is encountering problems
I can't see anything related in event viewer. I think is web service related as I think the queries are made via a WS?
In my case it wasn’t a solution. So, I made a backup of the site collection before to try anything. After a lot of time and different problems I figured out that some lists were causing the missreading. I tried one more time to get the lists in SharePoint Designer 2010 just to cause some entries in the log. After that I opened the log file and looked for something like: “Failed to determine the setup path of the list schema for feature {GUID}, list template XXX.”. With the GUID I looked for a match here. http://sharepoint-geek.com/2010/10/08/sharepoint-2007-moss-features/
With the feature name I used this blog: http://aurramu.blogspot.com/2011/03/failed-determine-setup-path-of-list.html.
With the feature re-installed I went to SPD and it worked like a charm.
I hope it helps someone else.
It appears this was caused by a "phantom" list definition. I experienced a number of other problems (some in SP some in SPD), all generating variations of this error;
<nativehr>0x8107058a</nativehr><nativestack></nativestack>
The problem list definition was deployed and undeployed from VS2010, so I have no idea why it was still around! The Sharepoint UI wont allow you to remove it (errors as above), so the trick is to use the stsadm powershell command with forcedeletelist as detailed here
http://technet.microsoft.com/en-us/library/cc262609(office.12).aspx
Hope this helps someone else !

SharePoint 2010 can't find or use ListData.svc

Can anyone lead me in the direction on how to access/enabled/use the ListData.svc in SharePoint 2010? When we try to access it via our web browser, we get a 404 error. Is there a service we need to enabled, or install a component, please help?
One way for this to happen is if a list doesn't actually work (in the browser it errors when you try to open it). Another symptom would be that Sharepoint designer doesn't show anything for lists and libraries.
I got this by following along a learning book. If there is a list that relies on a feature or something that is no longer installed this might happen.
One answer is to delete the offending list(s) using powershell;
$w = Get-SPWeb "http://localhost"<br />
$w.Lists.Delete([System.Guid]$w.Lists["MyListName"].ID)

Resources