This is the webmethod that writes data into the OpenedBugs table. Required parameters in each of the WorkItemData objects are WorkItemId,and WorkItemUri title.
Namespace:  Microsoft.TeamFoundation.Build.Server.Compatibility
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Sub AddOpenedWorkItemsForBuild ( _
    buildUri As String, _
    workItems As WorkItemData() _
)
[WebMethodAttribute]
public void AddOpenedWorkItemsForBuild(
    string buildUri,
    WorkItemData[] workItems
)
[WebMethodAttribute]
public:
void AddOpenedWorkItemsForBuild(
    String^ buildUri, 
    array<WorkItemData^>^ workItems
)
[<WebMethodAttribute>]
member AddOpenedWorkItemsForBuild : 
        buildUri:string * 
        workItems:WorkItemData[] -> unit
public function AddOpenedWorkItemsForBuild(
    buildUri : String, 
    workItems : WorkItemData[]
)
Parameters
- buildUri
 Type: System.String
- workItems
 Type: array<Microsoft.TeamFoundation.Build.Server.Compatibility.WorkItemData[]
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.TeamFoundation.Build.Server.Compatibility Namespace