简体   繁体   中英

Azure Devops API - Get top level portfolio work item types

I'm trying to get a list of work item types per level in Azure Devops using the API and the following:

dev.azure.com/{collection_name}/{project_id}/_apis/work/processconfiguration

which does indeed bring me almost all the information about the process type work item levels. However it doesn't bring me any of the top level work items that I've added to the portfolio level as shown below.

在此处输入图像描述

I would think it should be included in the Portfolio backlog here but only epics and features are included.

在此处输入图像描述

Is there an API available where I can get the top level work item types for a given process or project?

According to your description, I tested create a new Portfolio backlog and found the API is using: https://dev.azure.com/{org}/_apis/work/processes/{processid}/behaviors

And search the REST API found the following:

GET https://dev.azure.com/{organization}/_apis/work/processes/{processId}/workitemtypesbehaviors/{witRefNameForBehaviors}/behaviors?api-version=6.0-preview.1

In your case, you could use the following API to list the Portfolio backlogs:

GET https://dev.azure.com/{organization}/_apis/work/processes/{processId}/behaviors?api-version=6.0-preview.1

For more information, you could refer to this documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM