Community Plugin
View plugin on GitHub

Description

Gatsby Source plugin for pulling tasks from Asana projects.

Learning Resources

How to install

npm install --save gatsby-source-asana

Examples of usage

In your gatsby-config.js :

{
  resolve: `gatsby-source-asana`,
  options: {
    apiToken: `<your Asana token>`,
    projectId: `<your Asana project id>`,
    fields: ['name', 'assignee']
  }
}

How to query for data (source plugins only)

Query all tasks

export const query = graphql`
{
  allTask {
    nodes {
      id
      name
    }
  }
}

Query a single task by id

export const pageQuery = graphql`
  query ($id: String!) {
    task(id: { eq: $id }) {
      id
    }
  }
`;
© 2022 Gatsby, Inc.