- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 11:02 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 11:52 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 11:52 AM
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