1

I'm using Azure Devops Server 2019, update 1.1. My goal is to write an extension that presents a new page, but only on the user story work item data entry form and not the data entry form for a Task, Bug, Issues, etc. See screen shot

enter image description here

Here is the contributions section of my vss-extension.json (It's what produced the custom page in the screen shot above). I've read Extension manifest reference, but I can't find a setting related to limiting which form a new page appears on.

Does anyone know which area of the extensions architecture I need to work in to limit which forms on which a new page appears?

"contributions": [
    {  
        "id": "sample-work-item-form-page",
        "type": "ms.vss-work-web.work-item-form-page",
        "description": "Custom work item form page",
        "targets": [
            "ms.vss-work-web.work-item-form"
        ],
        "properties": {
            "name": "Create Standard Tasks",
            "uri": "workItemPage.html"
        } 
    }
]
VA systems engineer
  • 2,856
  • 2
  • 14
  • 38

1 Answers1

0

By reference to this doc: Extend the work item form, this web extension belongs to Azure Boards service, so it will appear in all work item pages as your mentioned doc: Extension manifest reference. Currently it is not documented to specify which work item type it appears in.

In addition, you could directly follow this doc: Customize the web layout for a work item type (Inheritance process) to add a custom page to the user story work item. enter image description here

Edward Han-MSFT
  • 2,879
  • 1
  • 4
  • 9
  • So, just to be clear: If I want to add a new page using a custom extension, I cannot control which work item forms it appears on. Alternatively, I can use a custom process template (via inheritance) and create a custom page for only the user story, but then that's not a custom extension, i.e., I can add fields to the custom page, but cannot otherwise "program" the page to do custom operations like I could do using a custom extension – VA systems engineer Feb 12 '21 at 15:16
  • Yeah, that is the current limitation but it is a good suggestion, we suggest that you could submit it here: https://developercommunity2.visualstudio.com/report?entry=suggestion&space=22, the product group will review these tickets regularly, and consider take it as roadmap. – Edward Han-MSFT Feb 15 '21 at 05:35