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

How can i get the value of the action in validator in RTC502?

  Hello,
   I want to control the owner of the workitem keep different when the opretor perform the specifical ation.I tryed to use validator to implement this.However ,i found that i coundn't get the value of the action.What should i do ?
    Thanks for help!

0 votes



One answer

Permanent link
As explained in https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript you can only access this in conditions.

Cite:

since 4.0 M1 getWorkflowAction() returns a string that is the id of a workflow action currently selected by the user. This action will be executed when the item is saved. If the user has not selected any action this method will return null . Note: This method works only when used inside a Condition script, the return value will always be null when this is used in other customization script types.

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,131

Question asked: Oct 26 '15, 11:34 p.m.

Question was seen: 2,618 times

Last updated: Oct 27 '15, 8:44 a.m.

Confirmation Cancel Confirm