TFS 2017 Release Management: How to display parent PBI for Tasks under Release

后端 未结 1 852
南方客
南方客 2021-01-07 12:40

Is there any way to show the parent PBI for a Task Work item under Release in the list under TFS2017?

The screenshot below shows two tasks associated with Release-3.

1条回答
  •  心在旅途
    2021-01-07 13:17

    The steps to achieve that with extension:

    1. Get specify release to get build id
    2. Get work items of that build per build id
    3. Get related work items

    There is simple code of extension to get work items of specific release that you can refer to:

    HTML:

    
    
    
        Custom widget
        
        
        
    
    
        

    widgets starain

    none
    none workitem

    vss-extension.json:

    {
      "manifestVersion": 1,
      "id": "sample-extension",
      "version": "0.5.34",
      "name": "My test extension",
      "description": "my test extension description",
      "publisher": "Starain",
      "targets": [
        {
          "id": "Microsoft.VisualStudio.Services"
        }
      ],
      "icons": {
        "default": "Images/logo.png"
      },
      "scopes": [
        "vso.work",
        "vso.build",
        "vso.build_execute",
        "vso.test",
        "vso.test_write",
        "vso.release"
      ],
      "contributions": [
            {
          "id": "WidgetStarain",
          "type": "ms.vss-dashboards-web.widget",
          "targets": [ "ms.vss-dashboards-web.widget-catalog", "Starain.sample-extension.WidgetStarainConfiguration" ],
          "properties": {
            "name": "widget starain",
            "description": "custom widget",
            "catelogIconUrl": "Images/iconProperty.png",
            "previewImageUrl": "Images/iconProperty.png",
            "uri": "WidgetStarain.html",
            "supportedSizes": [
              {
                "rowSpan": 1,
                "columnSpan": 2
              }
            ],
            "supportedScopes": [ "project_team" ]
          }
        } 
      ],
      "files": [
        {
          "path": "node_modules/vss-web-extension-sdk/lib",
          "addressable": true
        },
        {
          "path": "Images",
          "addressable": true
        },
        {
          "path": "Scripts",
          "addressable": true
        },
        {
          "path": "WidgetStarain.html",
          "addressable": true
    
        }
       ]
    }
    

    0 讨论(0)
提交回复
热议问题