tfs - Bulk delete "Build Failure" items from Backlog -


while weren't watching, our tfs build server generated 200 "build failure in build" items in our product backlog. there simple way bulk remove them?

do want destroy these build failure bugs permanently or want remove them backlog?

if want destroy them permanently (remove work items team foundation database), can use following code:

var tfctc = new tfsteamprojectcollection(new uri("http://tfsservername:8080/tfs/defaultcollection")); var wis = tfctc.getservice<workitemstore>(); var witodelete = new list<int>(); var wiql = "select * workitems [system.teamproject] = 'teamprojectname' , [title] contains 'build failure in build: ' , [state] = 'new' "; var wic = wis.query(wiql); foreach (workitem wi in wic) {     witodelete.add(wi.id); } wis.destroyworkitems(witodelete); 

Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -