This example shows you how to retrieve a list of tasks based on a certain task type.
1. Get a runbook’s tasks
We will need to use the request URL below:
2.Create a list that filters by task type
Next, let’s filter the runbook by milestone tasks. In order to do this, we will need to use the List Task Types endpoint. The request URL will look like this:
Once we have executed the API call, we will see that a milestone task type has an ID of 2. To filter the runbook by milestones, we will need to enter the runbook_id which is 1884 and the task_type_id which is 2 into the following request URL:
The API response will return a list of milestone tasks.
Below we have included some example Java code you would need to accomplish these tasks: