This snippet is intended for users who'd like to search tasks that include active project within Project Insight.
curl -X GET --header 'Accept: application/json' 'http://yourdomain.com/api/task/search?includeActiveProjects=true'
Alternatively, you can use the task 'search' method in order to narrow and filter your results for retrieving specific tasks.
curl -X GET --header 'Accept: application/json' 'http://yourdomain.com/api/task/search?includeActiveProjects=true&projectList=b01ecae1-c012-450a-a8ed-dd23d29c6da5&keywords=process'
If you're working with JavaScript within Project Insight, you can use jQuery and make Ajax requests.
var settings = {
"async": true,
"crossDomain": true,
"url": "{YOUR_DOMAIN_URL}/api/task/project/fb8989ebb84d4b9f825bfe412bfa6021",
"method": "GET",
"headers": {
"api-token": "{YOUR_API_TOKEN}",
"cache-control": "no-cache",
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Online
3/23/2017