store Object

Represents the current Collection’s Work Items and corresponds to the IWorkItemRepositoryExposed interface. It exposes only two methods GetWorkItem and MakeNewWorkItem.

GetWorkItem method

Retrieves a work item from the current Collection by ID.

var myWorkitem = store.GetWorkItem(42);

MakeNewWorkItem methods

Add a new WorkItem to current Collection.

var newWorkItem = store.MakeNewWorkItem(self, "Bug");

This syntax will create the new work item in the same TeamProject as self.

var newWorkItem = store.MakeNewWorkItem("MyProject", "Bug");

Using this overload, you can specify the TeamProject.

Both methods require specifying the new work item’s type.

The new work item Fields have default values; it is not committed to the database until all the rules have fired and Aggregator returns control to TFS.