AnsweredAssumed Answered

Reference CR from cr_wf to Create Transition Condition

Question asked by jlhawley on Jun 29, 2018
Latest reply on Jun 29, 2018 by Maheshwar_Kusuma

How do I reference the Change field in a CR for use in cr_wf? I need to make a site-defined condition? I need the cr.change (if correct) object in the cr_wf like the Request/Incident/Problem's Assignee (cr.assignee) (the field I am referring to is the Change field that is populated when a user selects "Create Change Order" in the CR)?

 

There are similar examples in my environment where a wf is referencing objects from the overall chg:

 

Object Type: Change Order Workflow Task

Description: Tests to see if the related Change Order is in "Approval in progress" status and the Risk survey completed.

Code: if (( !is_null(getval_by_name("chg.status")) && getval_by_name("chg.status") == "APP" ) && ( !is_null(getval_by_name("chg.risk")) ))
set_return_data(TRUE);
else
set_return_data(FALSE);

Outcomes