About Me

My photo
a Dynamic and Energetic guy.....

Thursday, March 25, 2010

How to delete a TFS task

Sometimes we want to delete task that we have added to TFS
But there is a no way to delete using a UI.

we have to use command promt

cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE or
cd  C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
then type follwing command

witadmin.exe destroywi /Collection:http:\\Optimus:8080\tfs\IPG /id:9
Collection == Team Project collection url
Id == ID that is generated by TFS


Simple as a UI click :)


Additional Details
Most of the people are not getting this witadmin.exe

So i have uploaded it.   Download WITADMIN.EXE

Wednesday, March 24, 2010

Get query string parameters using a Java Script

function getQuerystring(key, default_) {
if (default_ == null) default_ = "";
key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
var qs = regex.exec(window.location.href);
if (qs == null)
return default_;
else
return qs[1];
}

//Call the function
var CategoryID = getQuerystring('CategoryIDs');

Tuesday, March 23, 2010

Change time format inside SharePoint



When we want to change the time format that display in sharepoint calendar,



We have to go to Site settings --> regional settings



After change the time format we can see our calendar in 24 hour time format.



Wednesday, March 17, 2010

Why TFS portal webparts throwing an error - [Solution]


When we have configured sharepoint webportal for TFS, sometimes is throws an error when displaying "Project Dashboard" & "My Dashboard", all webparts displaying as missing components.


This is because, we have lost all webparts (basically dll's that renders webparts).
What we have to do is,
(1) Central administration --> Operations --> Solution management --> tswawebpartcollection.wsp --> DEPLOY




(2) Central administration --> Application Management --> Manage Web Application Features --> Visual Studio Team Foundation Server Configuration --> ACTIVATE



Now refresh your page :)

My Masters