LaneshotDocs

Search the docs

Find a page or a section

Open Laneshot

Self-hosting

Imports from Asana and Trello

Turn on one-click "Connect Asana" and "Connect Trello" in the import wizard, or let people paste a token instead.

The import wizard reads a project from Asana or a board from Trello and brings its tasks, comments, attachments, tags, and custom fields into a Laneshot project. How to run an import is described in Import from other tools. This page is for whoever runs the server.

Imports work in two ways:

  • Connect: one click. The person signs in to Asana or Trello and approves read access. This needs an app registered for your server, described below.
  • Paste a token: works on every server, with nothing to configure. The wizard explains where to create the token.

Either way, Laneshot only reads from the source. The credentials are stored encrypted on the import job and erased when the import ends.

Asana

  1. Open the Asana developer console and select Create new app.
  2. Under OAuth, add the redirect URL <APP_URL>/api/import/oauth/asana/callback, such as https://laneshot.acme.com/api/import/oauth/asana/callback. Asana requires HTTPS, except for localhost.
  3. Under Permission scopes, turn on these read scopes:
    • workspaces:read
    • projects:read
    • tasks:read
    • stories:read
    • custom_fields:read
    • attachments:read
    • users:read
    • tags:read
  4. Under Manage distribution, choose Any workspace so people from every Asana workspace can connect. Specific workspaces limits it to the workspaces you list.
  5. Copy the client ID and client secret into your environment, then restart Laneshot:
ASANA_OAUTH_CLIENT_ID=<client id>
ASANA_OAUTH_CLIENT_SECRET=<client secret>

Asana access tokens last an hour. Laneshot refreshes them during long imports, so large projects import completely.

Enterprise Asana admins can block apps that aren't approved. If people see an approval request, ask the Asana admin to approve the app.

Trello

Trello issues tokens to an API key, and only redirects back to origins the key allows.

  1. Open the Trello Power-Up admin portal and create a Power-Up for your workspace. Its name is what people see when they approve access.
  2. On its API key tab, select Generate a new API key.
  3. Under Allowed origins, add your APP_URL, such as https://laneshot.acme.com.
  4. Copy the API key into your environment, then restart Laneshot. The secret isn't needed.
TRELLO_API_KEY=<api key>

Tokens from Connect Trello are read-only and expire after one day, which is enough for any import.

Rate limits

Asana allows 150 requests a minute on free plans and 1,500 on paid plans. Trello allows 100 requests every 10 seconds per token. Laneshot paces its requests and waits when the source asks it to slow down, so a large project on a free Asana plan can take several minutes. Each task with comments or attachments costs a few requests.

Troubleshooting

Problem Fix
No Connect Asana or Connect Trello button Set the variables above and restart. People can still paste a token meanwhile.
Asana says forbidden_scopes Turn on every scope listed above in the Asana app, or switch the app to full permissions.
Asana says the redirect URI doesn't match The redirect URL must be exactly <APP_URL>/api/import/oauth/asana/callback, with the same scheme and host as APP_URL.
Trello shows an error instead of returning to Laneshot Add APP_URL to the API key's allowed origins.
The import says the connection expired Connect again. A connection lasts one import.