work item attribute customization: call window.location from script
2 answers
Hi Eric,
I tried something like this:
dojo.provide("com.apisit.calc.greska.url");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.apisit.calc.greska.url", null, {
getValue: function(attribute, workItem, configuration) {
var workFlowState = workItem.getValue(WorkItemAttributes.STATE);
if(workFlowState==""){
open_win();
}
else
{
open_win();
}
function open_win()
{
window.open("http://www.google.hr", "_blank");
}
}
});
})();
but this doesn't work...
I was looking at the post you sent me, but clearly I didn't find something like this...
Is this supported in anyway?