Skip to content
This repository was archived by the owner on Jun 3, 2022. It is now read-only.

pleo-io/clubhouse-to-linear-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clubhouse-to-linear-exporter

Pulls Clubhouse tickets and creates them back in Linear

Setup

You'll need to get a few detail first:

  • Your Clubhouse API key from the settings page

  • Your Linear API key from the settings page

  • Fill-in the workflow ids and Linear type mapping by making these curl requests:

First to get your Linear team uuid:

curl \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: <your linear api key>" \
  --data '{ "query": "{ teams { nodes { id name } } }" }' \
  https://api.linear.app/graphql

Then, with the team id, collect the labels and states:

curl \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: <your linear api key>" \
  --data '{ "query": "team(id: "<your_team_id>") { labels { nodes { id name } } states { nodes { id name } } }" }' \
  https://api.linear.app/graphql

Update the settings in the code and you are good to go!

Running

CLUBHOUSE_API_TOKEN=<your clubhouse token> LINEAR_API_TOKEN=<your linear token> TEAM_NAME=<team name> node .

The script will run through all open tickets for that team and sequentially ask if this ticket should be migrated to Linear.

What's missing

  • Screenshots seem broken, Linear tries to upload from the clubhouse url instead of simply embedding it
  • Assignees
  • Comments
  • Upserting in Linear instead of jsut creating

About

Pulls Clubhouse tickets and creates them back in Linear

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published