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

Validator javascript does not block save

RTC 6.0.3

I have 2 validator java scripts that are not blocking the save.  I have the attribute validation pre-conditioned enabled for my role. 

It is displaying the error message if you hover the red x by the attribute but allows the save to go through...

The values in the script is from an customized attribute enumeration in both validator scripts.

I am doing a compare between a delivery value and a Event Value if they don't match

 return new Status(Severity["ERROR"], "Validation failed");

However it is still allowing work item to save in both of the validator scripts. Does anyone have any idea why it is not blocking the save.  I work in a closed area so I cannot put my script contents in here but my script follows the validator example.

0 votes



One answer

Permanent link

 There are the following causes I would consider:


1. The project area process is broken in some ways. There have been rare cases where this was the case => support.
The next two causes account for 98% of the cases I have seen over the years.
2. The script is wrong => Debugging/logging 
3. The script works and the process works as designed but there is a lack of understanding on how process, especially advisors, work. E.g. only the first matching role configuration found is executed and users have usually multiple roles  and roles are ordered. The roles are configured in a process area hierarchy and the operation behavior is evaluated starting with the process area that owns the element to be modified. So the stuff works, but the way it is configured never triggers because another role takes precedence. See:

0 votes

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: Sep 19 '18, 4:25 p.m.

Question was seen: 1,730 times

Last updated: Sep 20 '18, 2:36 a.m.

Confirmation Cancel Confirm