PSPlus.Tfs.Format.ps1xml
<?xml version="1.0" encoding="utf-8"?>
<Configuration> <ViewDefinitions> <!-- Team project collection --> <View> <Name>Team project collection</Name> <ViewSelectedBy> <TypeName>Microsoft.TeamFoundation.Client.TfsTeamProjectCollection</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Name</Label> </TableColumnHeader> <TableColumnHeader> <Label>InstanceId</Label> </TableColumnHeader> <TableColumnHeader> <Label>Uri</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>InstanceId</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Uri</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <!-- Team project --> <View> <Name>Team project</Name> <ViewSelectedBy> <TypeName>Microsoft.TeamFoundation.WorkItemTracking.Client.Project</TypeName> </ViewSelectedBy> <GroupBy> <Label>Collection</Label> <PropertyName>Collection</PropertyName> </GroupBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Name</Label> </TableColumnHeader> <TableColumnHeader> <Label>Guid</Label> </TableColumnHeader> <TableColumnHeader> <Label>Uri</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Guid</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Uri</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <!-- Work related data structures --> <View> <Name>Work item type</Name> <ViewSelectedBy> <TypeName>Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Name</Label> </TableColumnHeader> <TableColumnHeader> <Label>Description</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Description</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>Work item</Name> <ViewSelectedBy> <TypeName>Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Id</Label> <Width>10</Width> </TableColumnHeader> <TableColumnHeader> <Label>Type</Label> <Width>6</Width> </TableColumnHeader> <TableColumnHeader> <Label>State</Label> <Width>8</Width> </TableColumnHeader> <TableColumnHeader> <Label>AssignedTo</Label> <Width>15</Width> </TableColumnHeader> <TableColumnHeader> <Label>Created</Label> <Width>22</Width> </TableColumnHeader> <TableColumnHeader> <Label>LastChanged</Label> <Width>22</Width> </TableColumnHeader> <TableColumnHeader> <Label>Title</Label> <Width>50</Width> </TableColumnHeader> <TableColumnHeader> <Label>Uri</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Id</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock>$_.Type.Name</ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>State</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock>$_.Fields[[PSPlus.Tfs.WIQLUtils.WIQLSystemFieldNames]::AssignedTo].Value</ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock>$_.CreatedDate.ToString()</ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock>$_.ChangedDate.ToString()</ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>Title</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Uri</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>Work items link</Name> <ViewSelectedBy> <TypeName>Microsoft.TeamFoundation.WorkItemTracking.Client.Link</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>BaseType</Label> <Width>15</Width> </TableColumnHeader> <TableColumnHeader> <Label>LinkType</Label> <Width>20</Width> </TableColumnHeader> <TableColumnHeader> <Label>Target</Label> <Width>80</Width> </TableColumnHeader> <TableColumnHeader> <Label>Comment</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>BaseType</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock> if (-not ($_ -is [Microsoft.TeamFoundation.WorkItemTracking.Client.RelatedLink])) { return $_.ArtifactLinkType.Name } else { return $_.LinkTypeEnd.Name } </ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> if ($_ -is [Microsoft.TeamFoundation.WorkItemTracking.Client.Hyperlink]) { return $_.Location } elseif ($_ -is [Microsoft.TeamFoundation.WorkItemTracking.Client.ExternalLink]) { return $_.LinkedArtifactUri } elseif ($_ -is [Microsoft.TeamFoundation.WorkItemTracking.Client.RelatedLink]) { return $_.RelatedWorkItemId.ToString() } </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>Comment</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>Work item link end</Name> <ViewSelectedBy> <TypeName>Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemLinkTypeEnd</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Id</Label> </TableColumnHeader> <TableColumnHeader> <Label>Name</Label> </TableColumnHeader> <TableColumnHeader> <Label>ImmutableName</Label> </TableColumnHeader> <TableColumnHeader> <Label>IsForward?</Label> </TableColumnHeader> <TableColumnHeader> <Label>OppositeEnd</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Id</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>ImmutableName</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>IsForwardLink</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock>$_.OppositeEnd.Name</ScriptBlock> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |