Answered by:
Release 2.0 Extension Points for Release menu and toolbar

Question
-
Using TFS 2015.2 on-premise, I'm trying to extend the functionality of Release 2.0 Releases.
From the Extension Points documentation online (https://www.visualstudio.com/en-us/docs/integrate/extensions/reference/targets/overview#release), I should be able to add the Contribution below to add a toolbar menu item, but this does not appear to work. I've tried other extension points like the ms.vss-releaseManagement-web.release-details-summary-tab and they work, so I'm wondering if this is not available in the version of TFS I'm using.Contribution sample:
"contributions": [
{
"id": "sampleAction",
"type": "ms.vss-web.action",
"description": "tbd",
"targets": [ "ms.vss-releaseManagement-web.release-editor-tool-bar-menu" ],
"properties": {
"text": "Sample Action",
"title": "Sample Action",
"toolbarText": "Sample Action",
"uri": "main.html"
}
}
]Also, I would like to extend the menu on the Releases grid view, which is not documented as an Extension point. Is it available/undocumented?
I also sent this question to vsointegration@microsoft.com as per https://www.visualstudio.com/en-us/docs/integrate/extensions/support/help and have not gotten a response.
Thanks!
Landan Rotter
Friday, June 24, 2016 4:24 PM
Answers
-
Hi Landan,
The contribution point to add to the action bar in the release summary does not exist on the TFS version you are using. It is available only on VSTS for now. It will become available in TFS in the Dev15 timeframe.
We currently do not have a contribution point available in the action menu for a release. We will add it to our backlog. Thanks for your feedback.
- Proposed as answer by Saumya Venkataraman [MSFT] Tuesday, June 28, 2016 6:19 AM
- Marked as answer by Landan Rotter Tuesday, June 28, 2016 11:32 AM
Tuesday, June 28, 2016 6:19 AM
All replies
-
Hi Landan,
>> I've tried other extension points like the ms.vss-releaseManagement-web.release-details-summary-tab and they work
What’s the detail code of json, page(html) and related file?
I made a test, it seems don’t work too also for VSTS, I think something wrong. What’s the result if you try it with VSTS/TFS online?
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Monday, June 27, 2016 7:50 AMModerator -
Both the ms.vss-releaseManagement-web.release-details-summary-tab and ms.vss-releaseManagement-web.release-details-view from this Microsoft github sample work in TFS 2015.2.
I'm trying to setup an action button, so from the other samples I'm following, the HTML page is basic with just a javascript alert. The Contribution type is "ms.vss-web.action".
action.html file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Action Sample</title>
<script src="sdk/scripts/VSS.SDK.js"></script>
<script>
VSS.init();
// Use an IIFE to create an object that satisfies the IContributedMenuSource contract
var menuContributionHandler = (function () {
"use strict";
return {
// This is a callback that gets invoked when a user clicks the newly contributed menu item
// The actionContext parameter contains context data surrounding the circumstances of this
// action getting invoked.
execute: function (actionContext) {
alert("Hello, world");
}
};
}());
// Associate the menuContributionHandler object with the "myAction" menu contribution from the manifest.
VSS.register("myAction", menuContributionHandler);
</script>
</head>
<body>
</body>
</html>JSON file:
{
"manifestVersion": 1,
"id": "sample-release-button",
"version": "0.0.1",
"name": "Hello World",
"description": "sample",
"publisher": "xyz",
"public": false,
"links": {
"learn": {
"uri": "https://github.com/Microsoft/vso-extension-samples"
}
},
"targets": [
{
"id": "Microsoft.VisualStudio.Services"
}
],
"contributions": [
{
"id": "myAction",
"type": "ms.vss-web.action",
"description": "tbd",
"targets": [ "ms.vss-releaseManagement-web.release-editor-tool-bar-menu" ],
"properties": {
"text": "Sample Action",
"title": "Sample Action",
"toolbarText": "Sample Action",
"uri": "action.html"
}
}
],
"files": [
{
"path": "action.html",
"addressable": true
},
{
"path": "scripts",
"addressable": true
},
{
"path": "sdk/scripts",
"addressable": true
}
],
"scopes": [
"vso.release"
]
}
Landan Rotter
Monday, June 27, 2016 2:00 PM -
Hi Landan,
Based on my test with TFS 2015 update 2.1 and VSTS, the ms.vss-releaseManagement-web.release-editor-tool-bar-menu doesn’t work, I think the issue may related to the type.
I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.
Regards
StarainWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, June 28, 2016 3:25 AMModerator -
Hi Landan,
The contribution point to add to the action bar in the release summary does not exist on the TFS version you are using. It is available only on VSTS for now. It will become available in TFS in the Dev15 timeframe.
We currently do not have a contribution point available in the action menu for a release. We will add it to our backlog. Thanks for your feedback.
- Proposed as answer by Saumya Venkataraman [MSFT] Tuesday, June 28, 2016 6:19 AM
- Marked as answer by Landan Rotter Tuesday, June 28, 2016 11:32 AM
Tuesday, June 28, 2016 6:19 AM -
Hi there. It's been at least 6 months. Any updates on this?Saturday, January 21, 2017 10:06 PM