task_list.do from api?

ahab
Tera Contributor

Hi guys,

 

I have been trying to find a single API view for prj/prjtask/inc/req/chg/prb/etc, I the UI  the task_list.do delivers that capabilitiy, "/now/nav/ui/classic/params/target/task_list.do". I'm looking for info like 'active', 'state', 'assigned to', 'description' and such common fields.. and maybe some dotted parent relationship info as well.

 

Is there an overview table that I can use or will I have to resort to multiple queries and stitching it together myself?

4 REPLIES 4

AnubhavRitolia
Mega Sage
Mega Sage

Hi @ahab 

 

You can go to REST API Explorer from Application Navigator and there you can select correct Namespace and other details as required. 

Than you can put your Query parameters and the Link will be auto updated including those query parameter fields.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

ahab
Tera Contributor

I have a dev user to query the API but my UI user doesn't have access to REST API Explorer.

 

But essentially you are saying 'no there is no such view, you have to create a custom query using the REST API Explorer' ?

 

Is there really no API table I can query that behaves like task_list.do in the UI?

ahab
Tera Contributor

I started a dev instance and checked out the REST API Explorer, as I suspected this leaves me no closer to an answer. There are tons and tons of options there but as far as I can see the table API just gives me a list of tables that I'd need to query individually and stitch together. I cannot see any clear distinctive 'overall', 'list', 'summary' or anything that matches what I get from task_list.do in the UI.

 

and since task_list.do in the UI allows me to get a table overview with PRJTASK, INC, REQ, CHG, PRB, etc all in one place.. I was hoping someone had a clear answer to whether this was possible also from the API.

 

still hoping. 🙂

Saurav11
Kilo Patron
Kilo Patron

hello,

 

To replicate task_list.do from api just do the below:-

 

Open rest api explorer and then select the table as task

 

Saurav11_0-1665239853349.png

 

Then you will get all the records of task in the single api

 

the basic API looks as below:-

 

https://yourinstancename.service-now.com/api/now/table/task

 

Now in the rest API explorer you have option to apply filter and choose which fields you want to show in the API

 

Saurav11_1-1665239971357.png

 

 

Please mark my answer as correct/helpful based on impact.