Initialize field values for a transition screen
Problem
Enable a user to change the default field values in the transition screen.
Solution
You can use Live Fields to resolve this issue. For details, refer to the accessing the current screen documentation with Live Fields.
For instance, let's explore a scenario where a rule is established to set the assignee on the "Resolve Issue" screen to the reporter. This configuration enables the reporter to validate and confirm issue resolution. If the issue is resolved, the reporter can then close it.
if(argv["screen"] == "trans_5") {
//On the "Resolve Issue" screen, set the assignee to the reporter
// so the user can test it and confirm that the issue is fixed.
lfSet("assignee", reporter);
lfDisable("assignee");
}
The code above prevents the user from changing the value of the assignee field.