How to make a mandatory field when I change to another state?
2 answers
Hi Sergio,
You can do that by writing a precondition plugin OperationAdvisor.
In the plugin you will have to:
- Get the value of the Disussion/Comment. by:
String commen = sourceworkItem.getComments().toString();
2. Check if the string is empty.
if(commen.isEmpty()){
IReportInfo problem = collector.createInfo(summary,description,type);
problem.setSeverity(IProcessReport.ERROR);
collector.addInfo(problem);
}
3. If the string is empty than pass an error message as given above, else do nothing.
Hope this helps.
Regards,
Abuzaid