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

Validator scripting help

 Hi I'm trying to code a validator but struggling to get it working.

I have a WI and one of the tabs has a 20 or so review questions which has the custom enumeration values PASS and FAIL.

The reviewer should be able to answer these questions as necessary when in the REVIEW state so that any rework can be carried out by the producer. However once the review has been passed and sent to moderation state all the questions must be in a passed state. 

I have looked at examples to ty and code this but nothing seems to work

0 votes



One answer

Permanent link
Paul,

I am not sure what you try. If you try to make sure the work item can only moved into the Moderation State if all questions/answers are pass then I think you can't do this with a validator.

I think you would have to use a java based plug in precondition or advisor. It can detect a state change to the Moderation State and prevent the work item from saving. https://jazz.net/library/article/1000 has some gudance how this works. It implements a follow up action, but an advisor is only different as
  • It uses com.ibm.team.process.service.operationAdvisors
  • It also uses com.ibm.team.workitem.operation.workItemSave as operation ID (see https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations for all id's)
  • It needs to implement IOperationAdvisor
The rest is pretty much the same.

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
× 6,121

Question asked: Sep 18 '12, 4:09 a.m.

Question was seen: 4,978 times

Last updated: Sep 18 '12, 5:42 a.m.

Confirmation Cancel Confirm