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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -