DEV Community

Cover image for Integrate Github with Asana to track issues in repositories
Tanisha for Canonic Inc.

Posted on • Updated on

Integrate Github with Asana to track issues in repositories

Over time the need for different services grows in a SaaS startup, from something as simple as sending out a slack notification to something more complex as Integrate Github with Asana.

In this case, maintaining and scaling these numerous Micro-services and Integrations is a huge developer overhead task.

Our previous guide covered sending a notification to Slack, and today we will move on to a bit more complex integrations ie; how you can integrate Github with Asana to track issues in repositories

Let's get started! šŸš€

Step 1: Create a Asana account

We'll be setting up an automated pipeline to create tasks on your Asana project whenever a new issue is created on your Github repository. So make sure you have your you have an asana account, or you can create from here.

Step 2: Letā€™s begin with the integrations! šŸ‘©ā€šŸ”§

All you have to do is, go to thisĀ sample projectĀ and click on the top right corner to clone it.

This project already has Github<>Asana integration set up. So after cloning the project, we are set to move forward and get started.

Project Clone

Step 3: Explore the API tab šŸ‘©ā€šŸ’»

In the same project, from the left-hand navigation bar, move to the API tab.

There on the left-hand panel, youā€™ll find different divisions like - Endpoints, Scheduled triggers, DB triggers, Integration triggers, etc. In the integrations triggers, you should find an integration setup!

Step 3

Step 4: Setup GitHub Integration āœØ

Let's see how you can modify this Github integration trigger that runs whenever the count of issues in the repository changes, i.e. Whenever a new issue is added to the repository.

Click on theĀ GithubIssuesĀ trigger node and itā€™ll open up the Properties panel for it.

Github Integration

You can see that we've selected the ListRepositoryIssues API from Github here. It'll listen to any changes to the response of this API and will trigger your workflow if the changes match any of the filters you've added. For this example, we are checking the list of the issues returned from Github is changing or not.

Now add your own repositories details in the API Configuration Section:

API Configuration

Step 5: Setup Asana Integration āœØ

Click on the Asana node and you can see the Create a Task API of Asana is already setup. Add API Key in the authentication section to connect with your account.

Asana Integration

Move on to the Optional tab of the panel and add:

  • {{0.title}} in the name field
  • {{0. body}} in the notes field

Optional

Once you've reached here, you've successfully Integrated Github with Asana to track issues in repositories. šŸ„³

Now every time an issue is created on your repository, you'll have it on your Asana Project too!

Image description

Check out the sample project here

Conclusion

Hope this guide helped you guys to track issues in repositories in an optimized and faster way. You can also check out our other guidesĀ here.

Join us onĀ discordĀ to discuss or share with our community. Write to us for any support requests atĀ support@canonic.dev. Check out ourĀ websiteĀ to know more about Canonic.

Top comments (0)