DNG javascripting - practical example of using RM.Data.getCurrentUser ?
Hi all
Using 6.0.6.1,
// Report the ID of the current user reportUserId = function() { RM.Data.getCurrentUser(function(result.data) { if (result.data) { report('Current user is: ' + result.data.userId); } else { error('Unable to determine current user.'); } }); };
So, where does "result" come from?
Working example, anyone?
thanks,
Steve
|
One answer
Got it.
RM.Data.getCurrentUser(function(result) {
if (result) {
println('Current user is: ' + result.data.userId);
} else {
println('Unable to determine current user.');
}
});
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.