How to make a mandatory field when I change to another state?
2 answers
Hello Sergio,
there is jazz.net article describing that: https://jazz.net/library/article/537/ look at the section "Dynamic required attributes"
Let me know if it helps for you.
Regards,
Krzysztof Kazmierczyk
there is jazz.net article describing that: https://jazz.net/library/article/537/ look at the section "Dynamic required attributes"
Let me know if it helps for you.
Regards,
Krzysztof Kazmierczyk
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