coditional script is working in V3 and same script is not working on RTC v4.
Hi Team
Finally, come to this stage and waiting for suggestion / help / information.
I have RTC v3, having script based condition is working and same script is not working for same scenario. Based on enumeration value specific attribute is going to be mandatory.
Pls find the sample script
-----------------------------------------------------------------------
dojo.provide("org.example.workitems.providers.play");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("org.example.workitems.providers.play", null, {
matches: function(workItem, configuration) {
var witype = workItem.getValue(WorkItemAttributes.TYPE);
var wipriority= workItem.getValue(WorkItemAttributes.PRIORITY);
if (witype === "com.ibm.workitem.workItemType.Task") {
if (wipriority === "priority.literal.l4") {
// Priority is High
return true;
} else {
return false;
}
} else {
return false;
}
}
});
})();
----------------------------------------------------------------
all neccessary steps has been followed and enable to run script on the v4 Server. Do i need to use specific syntax for v4 in .js file? Kindly lemme know , if you anybody come across this kind of behavior.
Many thanks
MRP