Dynamically Mandatory Attributes - Problem with indication (RTC V3.0.1.1)
2 answers
Script is :
<pre>
dojo.provide("com.ibm. workitems.providers.New");
dojo.require("com.ibm.team. workitem.api.common. WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api. common.WorkItemAttributes;
dojo.declare("com.ibm. workitems.providers.New", null, {
matches: function(workItem, configuration) {
var RAG= workItem.getValue("exec_ Indicator");
var state= workItem.getValue( WorkItemAttributes.STATE);
console.log("RAG Value is " + RAG);
console.log("State Value is " + state);
if ((RAG === "WorkItemMeasurement.literal. l2") && (state ===
"RiskWorkflow.state.s2"))
{
console.log("success");
return true;
}
}
});
})();