Rob Ert
Rob Ert

Reputation: 482

Azure DevOps - widgets sizes

I'm using Azure DevOps dashboards. Is there any way to resize one of the default widgets? I am looking for a way to resize 'Release Pipeline Overview' widget over standard options provided in configuration tab.

Here is some description about mentioned widget:

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

Upvotes: 2

Views: 1240

Answers (2)

Rob Ert
Rob Ert

Reputation: 482

Thanks for your answer that's cool! And it's almost working as I want. That's true widget size has been changed but content inside still have the same limitations. Any idea how to overcome this one?

enter image description here

Upvotes: 2

Hugh Lin
Hugh Lin

Reputation: 19431

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

For this issue , you can do it through Update Widget rest api:

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

Sample request body:

{
    "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"
}

You can customize the size in the request body.

Here is my test with postman and the result in dashboard:

enter image description here

enter image description here

Upvotes: 2

Related Questions