It's all about the answers!

Ask a question

Warning in followup action causes a messagebox to pop up when saving plan editor

Karol W (551811) | asked Oct 18 '12, 12:21 p.m.
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);
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:
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?

One answer

permanent link
Stu Poulin (1) | answered Nov 02 '12, 7:43 p.m.
Your code examples seems to be similar to
"IBM Rational Team Concert 3.0.1 Extensibility"
Page 87

Karol W commented Nov 05 '12, 10:41 a.m. | edited Nov 05 '12, 10:43 a.m.

 That's right.

 I am setting different severity, but the problem exist for IProcessReport.ERROR severity too. 
Also follow-up is hooked under other operation than in workshop.

Your answer

Register or to post your answer.