microsoft/azure-devops-extension-sample

Restrict a page inside a task to only show in tasks instead of epics and issues

mateusscheper opened this issue · 0 comments

Hey!

I'm trying to restrict a page inside a task to only show when the item type is actually a task, but it's still showing inside epics and issues.
Does anyone know how can I achieve that?

This is my vss-extension.json:

{
    "manifestVersion": 1,
    "id": "my-id",
    "publisher": "my-publisher",
    "version": "1.0.1",
    "name": "My project name",
    "description": "My description",
    "categories": [
        "Azure Boards"
    ],
    "targets": [
        {
            "id": "Microsoft.VisualStudio.Services"
        }
    ],
    "files": [
        {
            "path": "public",
            "addressable": true
        },
        {
            "path": "dist",
            "addressable": true
        }
    ],
    "scopes": [
        "vso.work"
    ],
    "contributions": [
        {
            "id": "my-id",
            "type": "ms.vss-work-web.work-item-form-page",
            "description": "My description",
            "targets": [
                "ms.vss-work-web.work-item-form"
            ],
            "properties": {
                "name": "Tab name",
                "uri": "dist/index.html"
            }
        }
    ]
}

Thanks!