Created
March 15, 2016 18:38
-
-
Save apucacao/e1ee79dfc19d06f73226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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