Can we set a notification(guideline) before changing the state of the Work item in RTC ?
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
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:
- catch only the change state from In Progress to Close;
- 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.
One other answer
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