Cancelled state in Project task form not mapping to state bucket.

jho
Kilo Contributor

I have created a business rule in the project task table to make the state 'Cancelled' inactive when it is saved or submitted but when I test this in the project task form I get the following message 'Custom state 'Cancelled' is not mapped to any state bucket. Please contact System Administrator to verify the setup.'

How do I get map the 'cancelled' state to a state bucket?

1 ACCEPTED SOLUTION

Noah Drew
ServiceNow Employee
ServiceNow Employee

Hi @jho !

You will need to make sure that the Dictionary Entry Override is set with the proper choice value for the Cancelled state.

You can do this with these steps:

1. Go to sys_dictionary.LIST

2. Column Name = state AND Table is "task"

3. Go to the Choices related list

4. Search for the record with the Label of "Cancelled" and table of either task, planned_task, or pm_project_task

5. Once the record is found remember the number found in the Value field

6. Go to sys_dictionary_override.LIST

7. Column Name = state AND Table is "planned_task"     (it may be "pm_project_task" if customized)

8. Assuming that "Cancelled" would be considered a closed state you will need to add the value to the Attributes of the Override.

 

Out of the Box the attributes are:

close_states=3;4;7,default_close_state=3,default_work_state=2,default_open_state=1,default_skipped_state=7,default_pending_state=-5,pending_states=-5,open_states=1,work_in_progress_states=2,skipped_states=4;7

 

Now pretend your Value for the custom Cancelled state is '8'. You would need to update this to the following:

close_states=3;4;7;8

 

close_states=3;4;7;8,default_close_state=3,default_work_state=2,default_open_state=1,default_skipped_state=7,default_pending_state=-5,pending_states=-5,open_states=1,work_in_progress_states=2,skipped_states=4;7

 

Hope that helps!

If it did, please mark as the Solution or Helpful. Thanks!

View solution in original post

2 REPLIES 2

Namita Mishra
ServiceNow Employee
ServiceNow Employee

Hi @jho ,

Below mentioned doc may help in this case:

https://docs.servicenow.com/bundle/newyork-it-business-management/page/product/project-management/ta...

 

You may also want to refer KB article KB0720080

 

Thanks,

Namita Mishra

Noah Drew
ServiceNow Employee
ServiceNow Employee

Hi @jho !

You will need to make sure that the Dictionary Entry Override is set with the proper choice value for the Cancelled state.

You can do this with these steps:

1. Go to sys_dictionary.LIST

2. Column Name = state AND Table is "task"

3. Go to the Choices related list

4. Search for the record with the Label of "Cancelled" and table of either task, planned_task, or pm_project_task

5. Once the record is found remember the number found in the Value field

6. Go to sys_dictionary_override.LIST

7. Column Name = state AND Table is "planned_task"     (it may be "pm_project_task" if customized)

8. Assuming that "Cancelled" would be considered a closed state you will need to add the value to the Attributes of the Override.

 

Out of the Box the attributes are:

close_states=3;4;7,default_close_state=3,default_work_state=2,default_open_state=1,default_skipped_state=7,default_pending_state=-5,pending_states=-5,open_states=1,work_in_progress_states=2,skipped_states=4;7

 

Now pretend your Value for the custom Cancelled state is '8'. You would need to update this to the following:

close_states=3;4;7;8

 

close_states=3;4;7;8,default_close_state=3,default_work_state=2,default_open_state=1,default_skipped_state=7,default_pending_state=-5,pending_states=-5,open_states=1,work_in_progress_states=2,skipped_states=4;7

 

Hope that helps!

If it did, please mark as the Solution or Helpful. Thanks!