locked
Multiple LinksControls on the work item form RRS feed

  • Question

  • For a heavily customized process template I'm trying to implement multiple specialized LinksControls on the front page ("Details") of the work item form (TFS2017.Update1).

    What I have done is the following:

        <Group Label="Derived">
          <Control Type="LinksControl" Name="Derived">
            <LinksControlOptions ViewMode="List">
              <ListViewOptions GroupLinks="true" />
              <LinkFilters>
                <WorkItemLinkFilter Type="RE.DerivedFrom-Forward" />
              </LinkFilters>
              <WorkItemTypeFilters>
                <Filter WorkItemType="Product Requirement" />
                <Filter WorkItemType="Customer Requirement" />
              </WorkItemTypeFilters>
              <Columns>
                <Column Name="System.State" />
                <Column Name="System.ChangedDate" />
                <Column Name="System.Links.Comment" />
              </Columns>
            </LinksControlOptions>
          </Control>
        </Group>
        <Group Label="Usings">
          <Control Type="LinksControl" Name="Usings">
            <LinksControlOptions ViewMode="List">
              <ListViewOptions GroupLinks="true" />
              <LinkFilters>
                <WorkItemLinkFilter Type="RE.Uses" />
              </LinkFilters>
              <WorkItemTypeFilters>
                <Filter WorkItemType="Product Property" />
                <Filter WorkItemType="Product Requirement" />
                <Filter WorkItemType="Customer Requirement" />
              </WorkItemTypeFilters>
              <Columns>
                <Column Name="System.State" />
                <Column Name="System.ChangedDate" />
                <Column Name="System.Links.Comment" />
              </Columns>
            </LinksControlOptions>
          </Control>
        </Group>
        <Group Label="Hierarchy">
          <Control Type="LinksControl" Name="Hierarchy">
            <LinksControlOptions ViewMode="List">
              <ListViewOptions GroupLinks="true" />
              <LinkFilters>
                <WorkItemLinkFilter Type="System.LinkTypes.Hierarchy" />
              </LinkFilters>
              <Columns>
                <Column Name="System.State" />
                <Column Name="System.ChangedDate" />
                <Column Name="System.Links.Comment" />
              </Columns>
            </LinksControlOptions>
          </Control>
        </Group>

    When I open the form some of the groups are empty, although there definitely are other work items linked using the link types in the filter:
    Missing links

    To verify, that the links really exist I checked on the "all links" page:

    When I hit the refresh button other links are shown. Which are shown seems to be quite random.

    Is there an error im my XML? Or is there any restriction to the WebLayout and usage of LinksControl that I'm not aware of? Or is this a (know) bug in TFS?

    Friday, November 17, 2017 9:16 AM

All replies

  • Hi Felix Gieseke,

    I tested this issue in my TFS 2017.1. I set User story and Bug as the filter workitem type.

     <WorkItemTypeFilters>
                <Filter WorkItemType="User Story" />
                <Filter WorkItemType="Bug" />
     </WorkItemTypeFilters>

    I could see User Stories and bugs links under Using and Derived:

    Please check whether your work item type names are right. If you add Bug in the WorkItemTypeFilters, can you see it under Using and Derived?

    Best Regards


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Sunday, November 26, 2017 9:49 AM
  • As stated above, when I add new links using one of the controls, the work items are shown correctly. So I'm pretty sure the WIT names are correct.

    To add another level of certainty I used copy&paste when defining the work item type filters.

    And to answer your question I added Bug and Issue (since I don't have the User Story WIT in that template) to the filters. The behavior is the same as described above.

    Tuesday, November 28, 2017 2:46 PM