I'm working on creating set of widgets for dashboard via code using REST api https://learn.microsoft.com/en-us/rest/api/azure/devops/dashboard/widgets/create?view=azure-devops-server-rest-5.0
So, I was able to create the widgets programatically but struggling while configuring the widget to point to certain team and details.
Example: creating Burndown widget using Analytics extention (https://marketplace.visualstudio.com/items?itemName=ms.vss-analytics&ssr=false#overview). I was able to create widget with contributionId and details.
However, can't set the settings to do aggregation of story points over certain sprints. Any help regarding this is appreciated.
Here is the json passed in Create request. Need help on "settings" part.
{ "id": "", "eTag": "7", "name": "Burndown", "position": { "row": 1, "column": 4 }, "size": { "rowSpan": 2, "columnSpan": 3 }, "settings": "", "settingsVersion": { "major": 1, "minor": 0, "patch": 0 }, "artifactId": "", "url": "urlvalue", "_links": { "self": { "href": "urlvalue" }, "group": { "href": "urlvalue" }, "dashboard": { "href": "urlvalue" } }, "isEnabled": true, "contentUri": null, "contributionId": "ms.vss-dashboards-web.Microsoft.VisualStudioOnline.Dashboards.BurndownWidget", "typeId": "Microsoft.VisualStudioOnline.Dashboards.BurndownWidget", "configurationContributionId": "ms.vss-dashboards-web.Microsoft.VisualStudioOnline.Dashboards.BurndownWidget.Configuration", "configurationContributionRelativeId": "Microsoft.VisualStudioOnline.Dashboards.BurndownWidget.Configuration", "isNameConfigurable": true, "loadingImageUrl": "urlvalue", "lightboxOptions": { "width": 900, "height": 700, "resizable": true } }