How to make a mandatory field when I change to another state?
sergio palacio (11●2●3)
| asked Mar 25 '13, 4:58 p.m.
edited Apr 02 '13, 9:01 a.m. by Ralph Schoon (63.7k●3●36●48)
Hi.
I need make the Comments/Discussion field mandatory whenever the ticket goes from "In Progress" to "Assigned" state.
Do you have anny guide to do it? please. Or anyone can explain it to me?
thanks in advance. . |
2 answers
Hi Sergio,
You can do that by writing a precondition plugin OperationAdvisor.
In the plugin you will have to:
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
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.