none
How to Select multiple work items programmatically in Azure devops? RRS feed

  • Question

  • I am writing a Task Creator extension for ADO where we can create multiple tasks for multiple WITs.

    Currently, I have a working extension where it allows to create multiple tasks on a single PBI.



    This is how my manifest file looks

    {
    "manifestVersion": 1,
    "id": "taskcreatortest",
    "version": "1.0.24",
    "name": "TaskCreator",
    "description": "Create bulk tasks for a Work Item",
    "publisher": "ZankhanaRana",
    "galleryFlags": [
    "Preview"
    ],
    "icons": {
    "default": "static/images/logo.png"
    },
    "scopes": [
    "vso.work_write",
    "vso.work",
    "vso.code"
    ],
    "targets": [
    {
      "id": "Microsoft.VisualStudio.Services"
    }
    ],
    "screenshots": [
    {
    "path": "static/images/menu.png"
    },
    {
    "path": "static/images/createtaskform.png"
    }
    ],
    "demands": [
    "api-version/3.0"
    ],
    "tags": [
    "TFS/VSTS Task Creator","Task"
    ],

    "content": {
    "details": {
      "path": "overview.md"
    },
    "license": {
      "path": "license.md"
    }
    },
    "links": {
    "getstarted": {
      "uri": "https://bit.ly"
    },
    "support": {
      "uri": "https://bit.ly"
    },
    "issues": {
      "uri": "https://bit.ly"
    }
    },
    "repository": {
    "type": "git",
    "uri": "https://bit.ly"
    },
    "branding": {
    "color": "rgb(220, 235, 252)",
    "theme": "light"
    },
    "files": [ ... ],
    "categories": [
    "Azure Test Plans"
    ],
    "contributions": [
    {
      "id": "createtasks-context-menu",
      "type": "ms.vss-web.action",
      "description": "Toolbar item to create tasks for a work item",  
      "targets":[ 
    "ms.vss-work-web.work-item-context-menu",
    "ms.vss-work-web.work-item-toolbar-menu"
      ],
    "properties": {
    "uri": "static/index.html",
    "text": "Create Tasks",
    "title": "Create multiple tasks for a work item",
    "toolbarText": "Create Tasks",
    "groupId":"core"
      }
    },
    {
      "id": "createTasks-Form",
      "type": "ms.vss-web.control",
      "description": "Select task to create",
      "targets": [ ],
      "properties": {
      "uri": "static/createTaskForm.html"
      }
    }
    ]
    }

    I am unable to select multiple work items, right-click and Create tasks.

    An alert message 'Select only one item' pops up.

    There are other custom extensions I installed, for example, Work Item Visualization by Microsoft Devlabs which allows multiple item selection. I think it has something to do with my configuration/manifest file. 

    Can someone point at what am I doing wrong?
    Monday, June 24, 2019 6:56 PM

All replies