Unable to import work item type definition: Microsoft.TeamFoundation.WorkItemTracking.Server.ProvisioningImportEventsCallback

后端 未结 2 997
孤城傲影
孤城傲影 2021-01-22 12:19

I have been searching the web for a solution to this issue with no luck. I have a team project in Visual Studio Team Services (VSTS) using an inherited copy of the scrum proces

2条回答
  •  不知归路
    2021-01-22 12:54

    The tip from Edit a WIT definition file article:

    Tip: With witadmin, you can import and export definition files. Other tools you can use include the Process editor, available for TFS 2015 and earlier versions, and which you install from TFS Power Tools. Or, you can use the TFS Team Project Manager, a community resource project available on CodePlex.

    The witadmin is not available for VSTS and as MrHinsh said that you can edit work items on Web Access.

    Regarding APIs’:

    Get process template:

    Request type: Get

    URL: https://[xxx].visualstudio.com/_api/_process/GetProcesses?__v=5

    Create work item type:

    Request type: Post

    URL: https://[xxx].visualstudio.com/_apis/work/processDefinitions/[inherited process template id (refer to get process template]/workItemTypes?api-version=3.0-preview.1

    Body (application/json):

    {
        "name":"WITCustom5",
        "description":"des",
        "color":"D3D3D3",
        "isDisabled":false
    }
    

    Add field to inherited process template:

    Request type: Post

    URL: https://[xxx].visualstudio.com/_apis/work/processDefinitions/[inherited process template id]/fields?api-version=3.0-preview.1

    Body (application/json)

    {
        "name":"f1",
        "type":"string",
        "description":""    
    }
    

    Add field to work item type:

    Request type: Post

    URL: https://starain.visualstudio.com/_apis/work/processDefinitions/[inherited process template id]/workItemTypes/[work item type id (refer to Create work item type)]/fields?api-version=3.0-preview.1

    Body (application/json):

    {
        "id":"[field id (refer to Add field to inherited process template)",
        "name":"[field name]",
        "type":"string",
        "rules":[
            {
                "rule":"$required",
                "value":null
    
            }
            ],
        "description":""
    
    }
    

    On the other hand, REST API for customization is simple and in preview. More information, you can refer to VSTS Process Customization futures.

提交回复
热议问题