How to get the ticket state description in REST response?

rah1
Kilo Contributor

I see ticket state is returned as integer value in REST response when i try to get the ticket details by REST API .

 

I am looking for it's actual value. ex. New , In progress , Closed etc. Not sure which table to hit to get the corresponding mapped value for integer value.

had a look at sys_state_model table , it has mapping but it's not included in the REST API tables.

Anybody can suggest how can i retrieve the state of ticket ?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

on your url add &sysparm_display_value=true which will give you displayvalue

ex: https://XXXXXX.service-now.com/api/now/table/incident?sysparm_query=active%3Dtrue&sysparm_display_value=true

View solution in original post

1 REPLY 1

Mike Patel
Tera Sage

on your url add &sysparm_display_value=true which will give you displayvalue

ex: https://XXXXXX.service-now.com/api/now/table/incident?sysparm_query=active%3Dtrue&sysparm_display_value=true