Asterisk doesn't appear when an attribute is made mandatory through condition script
I want to make my custom made "SA Priority"(labelled as Priority) attribute mandatory , if the "backward_compatible_network is set to "Incompatible Value". For this, I have created javascript condition as below.
dojo.provide("org.example.workitems.providers.Test_SA_Priority_Mandatory");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
dojo.declare("org.example.workitems.providers.Test_SA_Priority_Mandatory", null, {
matches: function(workItem, configuration) {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var sa_backward_compatible_network = workItem.getValue("backward_compatible_network");
var sa_priority = workItem.getValue("sa_kpi_priority");
if ((sa_backward_compatible_network === "SA_KPI_Backward_Compatible_Network.literal.l4")
) {
return true;
}
}
});
})();
3 answers
I have used the script as a condition. And I have added it to the below precondition.
Comments
Please find the screenshot.