It's all about the answers!

Ask a question

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


Yiguang Luo (824) | asked Oct 26 '15, 11:34 p.m.
  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!

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Oct 27 '15, 8:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or 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.