GithubHelp home page GithubHelp logo

hi-upchen / asana-task-numbering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oppiesystems/asana-task-id

0.0 0.0 0.0 260 KB

Adds a project code prefix to new tasks added in Asana using a service deployed to Vercel

TypeScript 100.00%

asana-task-numbering's Introduction

asana-task-id

Adds a project code prefix to new tasks added in Asana using a service deployed to Vercel.

Project Code Prefix Example

e.g. [PRJ-#] Task Name

Deployment

Prerequisites

Install package dependencies

yarn

Deploy Application

now --prod

Add Environment Variables

Rename the .env.example file to .env and update with the required values.

ASANA_ACCESS_TOKEN=<Asana Personal Access Token>
ASANA_PROJECT_ID=<Asana Project ID>
ASANA_PROJECT_PREFIX=<Project Task Prefix>

Add the same environment variable values to the Vercel project.

now env add ASANA_ACCESS_TOKEN production
# Add ASANA_ACCESS_TOKEN value
now env add ASANA_PROJECT_ID production
# Add ASANA_PROJECT_ID value
now env add ASANA_PROJECT_PREFIX production
# Add ASANA_PROJECT_PREFIX value

Register Hook

Execute the Asana webhook registration script on the deployed production URL.

yarn run register --url https://<PROJECT_URL>.now.sh/api/asana

Additional Configuration

Environment Variables

ASANA_WORKSPACE_ID Enables the retrieval and deletion of existing webhooks registered with the workspace. [Optional]

WATCH_CHANGES Enables prefixes to be added to tasks that already exist when an update occurs to any field within the task. (true/false) [Default = false] [Optional]

Development

Start the development server using the Vercel CLI.

now dev

Forward the local port to the outside using ngrok.

ngrok http 3000

Register the ngrok tunnel with the Asana webhook functionality.

yarn run register --url https://<NGROK_URL>.ngrok.io/api/asana

Operations

Note: Requires the ASANA_WORKSPACE_ID environment variable.

Get List of Existing Webhooks

yarn run get

Delete Webhook by Id

yarn run delete --webhookId 1178960809589035

FAQ

When registering a webhook I am receiving a Error: Forbidden message.

If you have already registered the webhook once before, try deleting it and re-registering with the yarn run register command.

asana-task-numbering's People

Contributors

patmigliaccio avatar hi-upchen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.