GITHUB ASANA ACTION

Integrate Asana and Github

How to synchronize your development work on Asana via Github Actions

Background

At our workplace FieldAssist, we use Github as Version Control System (VCS), and Asana for task management of different Flutter projects.

Solution

Recently I was exploring Github Actions and came to know about Github Action for Asana. This action helps in moving a task to its respective columns upon referencing its link in commit or Pull Request. Basically removing manual dependency for task movement and status change.

A sample showing automated comments

Caveats

This didn't fully fulfill our purpose. We wanted to comment about PR merging status also whenever a PR is merged or closed.

Meet TheDotLabs/github-asana-action

This new action helped us to automate our task movement on either commit push or pull requests.

uses: apgapg/github-asana-action@--latest--
with:
asana-token: 'Your PAT'
targets_commit_push: '[{"project": "New MT Flutter App", "section": "Development Done"}, {"project": "Current Sprint", "section": "In Review"}]' //Optional
targets_pr_raise: //Optional
targets_pr_merge: //Optional

Bot User

While developing this feature I came across another problem of not getting notification of these above auto-generated comments. This issue was due to PAT (Personal Access Token) which was mine and because it was me who was commenting (through Github Actions), Asana didn’t post notification in my inbox.

Outcome

Yay! It fulfills our purpose for now. No worries to maintain task status. Just raise PR.
As a Flutter team, We now have the full status of the currently ongoing development work in different Flutter Projects.

After feedbacks and final polishing

Conclusion

The above optimization seems small but is really helpful when you are working in enterprise mode where you have many developers on a project who are responsible for maintaining, developing, and scaling the product.

Flutter | Vue | IIT Roorkee | Physics Educator at Unacademy | Artist | Flute Player | Love for machinary, bikes, tools | DIY person