State Model defintions

psnow123
Giga Guru

When you add a state transition to a state model, where are the State choices 'Open/Work in Progress/Closed' etc, defined?

They seem to be derived from the table but where do you look?

 

psnow123_0-1680100198860.png

 

 

1 ACCEPTED SOLUTION

psnow123
Giga Guru

I'm adding this for future viewers.  This is the documentation for State Models. https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/state-model/concept...

 

https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/field-administratio...

 

YT: https://www.youtube.com/watch?v=NRoMGusIHYA

 

TLDR; you have to extend Task to have a state model, and once you add states to your extended table, they are available to use in transitions, and only your states show; otherwise you only have the Task standard 'States' available.`

 

To see Task default states, you need to view the Dictionary for Tasks and look for field type 'State', click on that and add your custom states, which should then be available in 'State Models'.

 

psnow123_1-1680203042776.png

 

View solution in original post

3 REPLIES 3

Bert_c1
Kilo Patron

Hi,

 

When I look at the State Model for problem_task (state field) I see the choices here:

 

https://[instance_name].service-now.com/sys_choice_list.do?sysparm_query=name%3Dproblem_task%5Eelement%3Dstate&sysparm_view=

 

Marcus Walbridg
Tera Expert

You would want to use the link given by Bert, or access the dictionary for these records.  Find out what the table name is and from your navigation search bar type in (table name).config

 

Example: System Users is sys_users, so it would be sys_user.config.

From there you can see the dictionary tab, find the 'State' definition and make changes to the choices that way.

psnow123
Giga Guru

I'm adding this for future viewers.  This is the documentation for State Models. https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/state-model/concept...

 

https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/field-administratio...

 

YT: https://www.youtube.com/watch?v=NRoMGusIHYA

 

TLDR; you have to extend Task to have a state model, and once you add states to your extended table, they are available to use in transitions, and only your states show; otherwise you only have the Task standard 'States' available.`

 

To see Task default states, you need to view the Dictionary for Tasks and look for field type 'State', click on that and add your custom states, which should then be available in 'State Models'.

 

psnow123_1-1680203042776.png