Coder Social home page Coder Social logo

elias-ba / language-asana Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openfn/language-asana

0.0 0.0 0.0 592 KB

An OpenFn adaptor for building integration jobs for use with Asana's API.

License: GNU General Public License v3.0

JavaScript 95.54% Makefile 0.62% Dockerfile 3.84%

language-asana's Introduction

⚠️ MOVED TO OpenFn/adaptors! ⚠️

N.B.: New versions are available at: https://github.com/OpenFn/adaptors/tree/main/packages/asana

Language Asana (Archived)

Language Pack for connecting with Asana.

Documentation

sample configuration

{
  "apiVersion": "1.0",
  "token": "shhhhhhhh"
}

How to create an API token

Using Asana's API requires having an API token. To generate that token, head to the Asana developer console and enter the Personal access tokens section.

There you can click on +New access token. A prompt will be opened allowing you to give the token a name and then create it.

Note: Treat your PAT like you would with a password. Do not share it or display it online.

Sample expression

Find a single task of a given project using the task id.

getTask('1234', {
  opt_fields: 'name,assignee',
});

Find the list of tasks of a given project using the project id.

getTasks('22889593722', {
  opt_fields: 'name,notes,assignee',
});

Update a specific task

updateTask('12344', {
  name: 'test',
  approval_status: 'pending',
  assignee: '12345',
});

Create a task

createTask({
  name: 'test',
  approval_status: 'pending',
  assignee: '12345',
});

Update a task or create a new one

You can use a field name literal as externalId to match a specific task. If the task does not exist, a new one will be created. The first parameter in this function should be the project_id.

upsertTask('12344', {
  externalId: 'name',
  data: {
    name: 'A new task',
    projects: ['12344'],
    notes: 'This is a new task',
  },
});

Development

Clone the repo, run npm install.

Run tests using npm run test or npm run test:watch

Build the project using npm run build.

language-asana's People

Contributors

taylordowns2000 avatar elias-ba avatar aleksa-krolls 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.