validator for iteration name
Is it possible to put validators for Iteration (sprint names) in RTC V6.0.2.
|
Accepted answer
As discussed, I really would consider other options before going this route. Nevertheless, The operation he should be looking at is: <project-operation id="com.ibm.team.process.server.saveProjectArea"> Here's some code to start with:
public class IterationSaveOperationParticipant extends AbstractService implements IOperationParticipant {
@Override
List<IProcessItem> savedItems = Arrays.asList(operationData.getSavedItems());
IIteration newIteration = (IIteration) savedItem; ...validate here newIteration.getName()... Ralph Schoon selected this answer as the correct answer
Comments 1
Good one. Not sure why I missed it. Agree with your assessment.
If you want to follow Miguel's suggestion, start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/
|
One other answer
Ralph Schoon (63.5k●3●36●46)
| answered Oct 14 '16, 5:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am getting tired to try to dig up the basic information necessary to understand the question and tend to not try to answer any more. It you want answers See How should I ask a question in the Forum if I want to receive useful answers? Most contributors here don't have the time to pry the info out of the asking user.
In general, it is possible to write process advisors. But you need an operation that you can use. I am not sure there is such an operation. These are the ones available: https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations Comments I agree the 'quality' of the questions has degraded over the last years, but please keep contributing. Your blog posts and answers in the forum are priceless :-) |
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.
Comments
What would be the purpose/use case for such a validator? See How should I ask a question in the Forum if I want to receive useful answers?
thanks for the notes Ralph , I did not want to make question too lengthy for it to be ignored for complexity.
Well... implementing a validation is technically possible by developing a server-side script, but that requires development effort + testing + deployment, etc.
The point here is... is it worth it?
Bear in mind that only a subset of your user-base should have permission to modify Team Areas and Iterations, so maybe it would be easier to educate them in the naming convention you want to use.