{"id":19383913,"url":"https://github.com/docspring/clubhouse_airtable_importer","last_synced_at":"2025-02-24T17:18:24.617Z","repository":{"id":48148435,"uuid":"203745850","full_name":"DocSpring/clubhouse_airtable_importer","owner":"DocSpring","description":"Import tickets from an Airtable.com base to Clubhouse.io stories","archived":false,"fork":false,"pushed_at":"2023-03-17T02:15:01.000Z","size":7,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T07:14:22.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DocSpring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-22T08:09:39.000Z","updated_at":"2019-08-22T08:10:54.000Z","dependencies_parsed_at":"2024-11-10T09:28:32.351Z","dependency_job_id":"61cafc71-b91e-48c4-baae-0c3f93b6bdd2","html_url":"https://github.com/DocSpring/clubhouse_airtable_importer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Fclubhouse_airtable_importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Fclubhouse_airtable_importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Fclubhouse_airtable_importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Fclubhouse_airtable_importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DocSpring","download_url":"https://codeload.github.com/DocSpring/clubhouse_airtable_importer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240521037,"owners_count":19814694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:28:21.625Z","updated_at":"2025-02-24T17:18:24.596Z","avatar_url":"https://github.com/DocSpring.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Airtable =\u003e Clubhouse importer\n\n# Overview\n\nMigrate tickets from [Airtable](https://airtable.com) to [Clubhouse](https://clubhouse.io).\n\n# Requirements\n\n* Ruby\n* Bundler\n\n### Setup\n\n* Install Gems\n\n```\nbundle install\n```\n\n* Set up API keys in `.env` (for `dotenv`)\n\nCopy the example `.env`:\n\n```\ncp .env.example .env\n```\n\nNow set the following values:\n\n#### `CLUBHOUSE_API_KEY`\n\nFind this at `https://app.clubhouse.io/\u003cyour_org\u003e/settings/account/api-tokens`\n\n#### `CLUBHOUSE_PROJECT_ID`\n\nYour Clubhouse project ID. Find this by visiting `https://app.clubhouse.io/\u003cyour_org\u003e/projects`. Then clicking the project, and find the project ID in the URL:\n\n=\u003e `https://app.clubhouse.io/\u003cyour_org\u003e/project/{{ your_project_id }}/\u003cyour_project_name\u003e`\n\n#### CLUBHOUSE_WORKFLOW_STATE_ID\n\nThe workflow state ID for all of your migrated tickets. (You could also customize the script to pull this value from an Airtable column.)\n\nThis can be tricky to find. I got it by starting IRB, and pasting in the following script:\n\n*(Note: You must first set your `CLUBHOUSE_API_KEY`*)\n\n```ruby\nrequire 'rubygems'\nrequire 'bundler/setup'\nrequire 'dotenv/load'\nrequire 'active_support/core_ext'\nrequire 'active_support/json'\nrequire 'awesome_print'\n\nrequire 'clubhouse'\n\nClubhouse.default_client = Clubhouse::Client.new(ENV['CLUBHOUSE_API_KEY'])\nap Clubhouse::Workflow.all.first.states.map { |s| {id: s.id, name: s.name } }\n```\n\nThis will print all the state IDs and names for your first workflow:\n\n```\n2.5.5 :060 \u003e ap Clubhouse::Workflow.all.first.states.map {|s| {id: s.id, name: s.name }}\n[\n    [0] {\n          :id =\u003e 500000008,\n        :name =\u003e \"Untriaged Bugs\"\n    },\n    [1] {\n          :id =\u003e 500000019,\n        :name =\u003e \"Unscheduled\"\n    },\n    [2] {\n          :id =\u003e 500000007,\n        :name =\u003e \"Ready for Development\"\n    },\n    ...\n]\n =\u003e nil\n```\n\n#### `AIRTABLE_API_KEY`\n\nYou can find your Airtable API key at: https://airtable.com/account\n\n#### `AIRTABLE_APP_KEY`\n\nVisit https://airtable.com/api, then choose your base. The app key will be visible in the URL:\n\n=\u003e `https://airtable.com/{{ your app key }}/api/docs#curl/introduction`\n\n\n#### `AIRTABLE_TABLE_NAME`\n\nThe name of the table in your Airtable base. (Case sensitive.)\n\n# Field Mapping\n\nYour Airtable table must have the following columns:\n\n* `Status` (text, single select, multi select, etc.)\n  * The value of this field must be `Todo`. Any other values will cause the row to be ignored. (I didn't want to import any completed tickets.)\n  * (*Feel free to extend the script with a mapping from Airtable states to Clubhouse workflow states.*)\n* `Export` (text, single select, multi select, etc.)\n  * This value must be set to `Clubhouse`. Any other values will cause the row to be ignored.\n* `Type` (text or multi select)\n  * The type of your Clubhouse story. Must be one of: `Bug`, `Feature`, `Chore`.\n* `Imported` (boolean)\n  * The import script will set this value to true once the Clubhouse story has been created. (Prevents duplicate stories if you need to re-run the script.)\n* `Priority` (text, single select, multi select, etc.)\n  * The priority of your ticket. I used the following options: `Critical`, `Important`, `High`, `Medium`, `Low`, `Much Later`. I decided to create labels in Clubhouse for each of these priorities. (*Feel free to modify or delete this part of the script.*)\n* `Title` (text)\n  * The title for your Clubhouse story\n* `Description` (text)\n  * The description for your Clubhouse story\n\n\n# Run the script\n\nAfter you have install the gems and configured all of the API keys in `.env`, run:\n\n```bash\n$ ./import.rb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocspring%2Fclubhouse_airtable_importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocspring%2Fclubhouse_airtable_importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocspring%2Fclubhouse_airtable_importer/lists"}