Configure state field choice values
-
- UpdatedAug 3, 2023
- 3 minutes to read
- Vancouver
- Platform Field Administration
State fields are a subset of choice list fields. Keep the following information in mind when you configure choice values for the state field.
- Use a negative value to add a new active state field.
- Search for and study the business rules that use a state number filter on the Script and Conditions fields. You can use the Debug tool to trace the order of the business rule execution.
- New values representing inactive states should have a value above 8.
You can define any of the following attributes for a state field by configuring the dictionary. If the attributes are not defined, the system uses the default values. The TaskStateUtil API uses the following attributes. For more information on the TaskStateUtil API, see TaskStateUtil.
Attribute | Definition |
---|---|
close_states | Semicolon delimited list of state values that are inactive, used to identify whether the task should be set to active or inactive. This is a required attribute to use the TaskStateUtil functionality. |
default_close_state | Optional attribute to define the state value of the default close state if you want to define business rules that automatically close a task. Defaults to 3, typically Closed Complete if attribute is not defined. |
default_work_state | Optional attribute to define the state value of the default working state if you want to define business rules that automatically set a task for working. Defaults to 2, typically Work in Progress if the attribute is not defined. |
State modification examples
Follow these examples for modifying the states of incidents and change requests.
Before you begin
Role required: admin
Procedure
Troubleshoot change states and business rules
Business rules in the system make assumptions about state values. You can troubleshoot business rules to see the order in which they run and see how it affects changes you make to State field values.
Before you begin
Role required: admin
Procedure
What to do next
See Debug Business Rule for information on how to trace the order of business rule
execution. You can click Debug All, resolve an incident, and
then check the trace at the bottom of form to watch the business rules execute.
These two line examples show that the mark_closed business rule code is entered
==>
and then exited <==
.