Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



One answer

Permanent link
Your code examples seems to be similar to
"IBM Rational Team Concert 3.0.1 Extensibility"
https://jazz.net/library/content/articles/rtc/3.0.1/extensions-workshop/RTC301ExtPoT.pdf
Page 87

0 votes

Comments

 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 log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Oct 18 '12, 12:21 p.m.

Question was seen: 5,105 times

Last updated: Nov 05 '12, 10:43 a.m.

Confirmation Cancel Confirm