Warning in followup action causes a messagebox to pop up when saving plan editor
Hi,
We have developed a simple followup action on save work item operation. It basically shows warning when the attribute 'acceptance test' (in stories) is empty.
We used following code to create a warning message:
IReportInfo problem = collector.createInfo(SUMMARY, DESCRIPTION);
problem.setSeverity(IProcessReport.WARNING);
collector.addInfo(problem);
It works (as we expected) when we save a work item (the warning is visible in both Work Item and Team Advisor view), but when we save a plan, the messagebox pops out with message:
Problems occurred while saving plan:
Reason:
No description
I can see here, that setSeverity() method shouldn't be used by developer (shouldn't be even exposed by API) .
So is there a way to get such functionality (show warnings after saving work item) without the side effect?
Is there a way to avoid this messageboxes to pop out?