incidents for a particular CI

chetansriram
Kilo Expert

Hi,

 

How do i view the incidents for a particular CI using advanced relationship query.

2 ACCEPTED SOLUTIONS

Hi @chetansriram ,
you can use "^ORDERBY" and "^ORDERBYDESC" followed by the field name to sort. See the examples below.
ORDERBYDESCORDERBYDESCORDERBYORDERBY

Hit thumbs up if you feel that it was helpful in resolving your query.

 

Regards,
Johns M P

View solution in original post

Thank you John for your timely help.

View solution in original post

11 REPLIES 11

Mike_R
Kilo Patron
Kilo Patron

Just add a query on your Incident table

Mike266_0-1665599228001.png

 

Hi Mike, thank for your quick reply. BTW i am looking for a query to use in Snow Rest API explorer. Attached the screenshot.

Johns_MP
Giga Guru

Hi @chetansriram ,
if you know the sys_id you can add it in the sysparm_query as shown below(see attached screenshot "with sysid").
with sysidwith sysid

 

if you are planning to use the name you can use the below screenprint "with Name"

with Namewith Name

 

Let me know if you need more help on the Rest Api
Hit Thumbs Up if you feel that the answer was useful.

Regards,
Johns M P

Yes This helps.  Is there any sort option to get the incident in the order of when they were opened. like latest first.

Presently the result is sorted as per the incident numbers by default.