Welcome Guest, you are in: Login

QVSource: The QlikView & Qlik Sense API Connector (Docs)

QVSource does not currently have a dedicated QlikView/Qlik Sense Connector for Asana, however, as the Asana API (at time of writing) uses basic authentication the General Web Connector can be easily used to connect to this API.

NOTE: You will need version of QVSource or later to run this script. This is because the Asana docs specify a maximum of 100 requests per minute so we need to use the minimumTimeBetweenRequests parameter which was made available in this version.

The following sample load script shows how to load all the tasks you have access to. By consulting the Asana API documentation you should be able to load all the data you need into QlikView or Qlik Sense.

Note that you will need to enter your own Asana API key for this to work.

let asanaAPIKey = '[ENTER YOUR API KEY]';

	id as Projects_id,
	name as Projects_name

LET noRows = NoOfRows('Projects');
for i=0 to $(noRows)-1

	let projectId = peek('Projects_id', $(i), 'Projects');

	set errormode = 0;
		'$(projectId)' as Projects_id,
		id as TaskIds_id,
		name as TaskIds_name

	set errormode = 1;

LET noRows = NoOfRows('TaskIds');

for i=0 to $(noRows)-1

	let taskId = peek('TaskIds_id', $(i), 'TaskIds');
		id as TaskIds_id,
		workspace_id as Task_workspace_id,
		workspace_name as Task_workspace_name,
		created_at as Task_created_at,
		modified_at as Task_modified_at,
		name as Task_name,
		notes as Task_notes,
		completed as Task_completed,
		assignee_status as Task_assignee_status,
		due_on as Task_due_on,
		completed_at as Task_completed_at,
		followers_id as Task_followers_id,
		followers_name as Task_followers_name,
		date#(SubField(created_at, 'T', 1), 'YYYY-MM-DD') as global_date,
		// assignee as Task_assignee, doesn't seem to always exist
		projects_id as Task_projects_id,
		projects_name as Task_projects_name


drop Table Projects;
drop table TaskIds;

(QVSource works with Qlik Sense as well as QlikView - See this page for notes.)
QVSource - The QlikView & Qlik Sense API Connector | © Copyright 2011 - 2016 Industrial CodeBox Ltd