Change Task showing state value in number

karthikbabu
Giga Expert

Hi All,

 

I have made a dependency for change task state value to a custom field.

custom field - value Approve                                         State - Value Closed Complete.

When I try to close a change task, after saving the state value is showing "3" instead of "Closed Complete"

find_real_file.png

Please suggest.

 

Thanks.

1 ACCEPTED SOLUTION

So you're saying in a new record or one that hasn't been saved, etc. it shows the state value correct? But upon saving...it changes to a number, specifically 3?

If so, then you need to check your Client Script for an onSubmit and see if something is writing that to the field or a business rule for that table that could be doing that.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

5 REPLIES 5

Karthik,

This solution would only work if you currently have a value in the Default section of State on the Task table.  If you do not, than this is not the right path to follow.

The State field is made up of 2 parts.  The first part is what you see i.e. Open, Pending, Close Complete etc.  The second part is the Integer which is what ServiceNow uses to determine what to do with that field.  There are a few default state/integer combinations and Closed Complete/3 is one of them.

Have you created any custom states on this table that use 3 as an integer?