gpt4 book ai didi

Azure DevOps - 小部件大小

转载 作者:行者123 更新时间:2023-12-02 23:17:44 24 4
gpt4 key购买 nike

我正在使用 Azure DevOps 仪表板。有没有办法调整默认小部件之一的大小?我正在寻找一种方法来根据配置选项卡中提供的标准选项调整“发布管道概述”小部件的大小。

以下是有关提到的小部件的一些描述:

https://learn.microsoft.com/en-us/azure/devops/report/dashboards/widget-catalog?view=azure-devops#release-pipeline-overview

最佳答案

resize 'Release Pipeline Overview' widget over standard options provided in configuration tab.

对于这个问题,您可以通过Update Widget Rest api来完成:

PATCH https://dev.azure.com/{organization}/{project}/_apis/dashboard/dashboards/{dashboardId}/widgets/{widgetId}?api-version=5.1-preview.2

示例请求正文:

{
"id": "456afb86-ecf6-49cf-bbcc-1ab7d0fc14b2",
"eTag": "1",
"name": "Release Pipeline Overview",

"size": {
"rowSpan": 4,
"columnSpan": 4
},
"settings": "{\"releaseDefinitionId\":1}",
"settingsVersion": {
"major": 1,
"minor": 0,
"patch": 0
},
"dashboard": {
"eTag": "6"
},

"contributionId": "ms.vss-releaseManagement-web.release-definition-summary-widget"
}

您可以自定义请求正文中的大小。

这是我对 postman 的测试以及仪表板中的结果:

enter image description here

enter image description here

关于Azure DevOps - 小部件大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58285135/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com