TaskStateUtil - getDefaultCloseState

Get the value for the default closed state.

The default closed state value is 3 if the default_close_state attribute has not been specified.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
Number State value representing the closed state.

var stateUtil = new TaskStateUtil(current);
//get the close state
var defaultCloseState =  stateUtil.getDefaultCloseState();
current.state = defaultCloseState;