task_list.do from api?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 02:19 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 02:37 AM
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.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 02:59 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 03:21 AM
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. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 07:39 AM
hello,
To replicate task_list.do from api just do the below:-
Open rest api explorer and then select the table as task
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
Please mark my answer as correct/helpful based on impact.