It's all about the answers!

Ask a question

Can we set a notification(guideline) before changing the state of the Work item in RTC ?


Krunal Gaoli (671269) | asked Sep 15 '17, 1:41 a.m.

 Hi Team,


My use case is that, When I change the state of Work Item for in progress to Close,
I wanted to remind user that "please apply for approval if not applicable ignore it" and then close the WI state.

Is it feasible using JAVA API, plugin or any other extension method.
Please suggest.

Best Regards,
Krunal.

Accepted answer


permanent link
SEC Servizi (97123860) | answered Sep 15 '17, 4:25 a.m.
edited Sep 15 '17, 4:25 a.m.
When I change the state of Work Item for in progress to Close,
I wanted to remind user that "please apply for approval if not applicable ignore it" and then close the WI state.

Is it feasible using JAVA API, plugin or any other extension method.
It should be quite simple creating a follow-up action on work-item save that:
  1. catch only the change state from In Progress to Close;
  2. add a new warning message to the IParticipantInfoCollector param:
IParticipantInfoCollector collector = ...;
IReportInfo info = collector.createInfo(summary, description);
info.setSeverity(IProcessReport.WARNING);
collector.addInfo(info);
Cheers.
Krunal Gaoli selected this answer as the correct answer

Comments
Krunal Gaoli commented Sep 15 '17, 5:32 a.m.

 Hi SEC,


Thanks a lot.
Best regards,
Krunal.

One other answer



permanent link
Donald Nong (14.5k614) | answered Sep 15 '17, 1:45 a.m.

What if the users just "ignore" it? Isn't it better to require an approval?
https://jazz.net/help-dev/clm/topic/com.ibm.team.workitem.doc/topics/t_requiring_approvals_for_state_transitions.html


Comments
Krunal Gaoli commented Sep 15 '17, 3:45 a.m.

 Hi Donald,

Yes it is always better.

Thanks a lot
Krunal.


Krunal Gaoli commented Sep 15 '17, 3:46 a.m.

 But in my case I wanted to show notification I don't want to make it mandatory since It is just a notification to the user. 

Your answer


Register or 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.