Skip to content

Instantly share code, notes, and snippets.

@apucacao
Created March 15, 2016 18:38
Show Gist options
  • Save apucacao/e1ee79dfc19d06f73226 to your computer and use it in GitHub Desktop.
Save apucacao/e1ee79dfc19d06f73226 to your computer and use it in GitHub Desktop.
VSS.require([
'ReleaseManagement/Core/RestClient'
], function(RMRestClient) {
var client = RMRestClient.getClient();
var config = VSS.getConfiguration();
var projectId = VSS.getWebContext().project.id;
config.onReleaseChanged(function(release) {
client.getReleaseWorkItemsRefs(projectId, release.id).then(
function(refs) {
console.log('work item refs:', refs);
},
function(error) {
console.log(error);
}
);
});
VSS.notifyLoadSucceeded();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment