Skip to content

nverges/pivotal-linear-importer

Repository files navigation

Pivotal Tracker Story -> Linear Issue Converter

CLI tool to convert PivotalTracker Stories into Linear Issues using the PivotalTracker Export CSV feature. Built on top of the official Linear SDK https://github.com/linear/linear/tree/master/packages/sdk, this library includes some extra features that make it easy to convert PivotalTracker boards directly into Linear Teams.

Key Features

  • File Attachments
  • Comments
  • Labels
  • Priority
  • Due Date
  • Created Date
  • Convert Pivotal Releases into Linear parent issues, with all associated stories in that release cycle as sub-issues
  • Generates log files

Setup

Installation

  1. Create .env file and add your Linear API key as API_KEY.
  2. yarn install
  3. Unzip PivotalTracker export CSV and move entire folder into src/csv/assets

Usage by Including CSV in project

  1. cd src
  2. node import.mjs

alt text

Usage by passing CSV full path

  1. yarn tracker2linear <full path to csv file>

Config Options

  • REQUESTS_PER_SECOND = 5
    • (varies based on API endpoint)
  • ENABLE_IMPORTING = true
    • false to halt execution before any requests; allows testing CLI
  • ENABLE_DETAILED_LOGGING = false
    • true to show additional output about file attachments

Features

Workflow Statuses

  • The following Workflow Statuses will be created in the selected Team. This allows each Team to modify statuses at their own pace without affecting other Teams, and will avoid any naming conflicts with existing statuses.

    • pivotal - accepted
    • pivotal - unscheduled
    • pivotal - finished
    • pivotal - planned
    • pivotal - started

    alt text

Labels

  • The following Labels will be created in the selected Team. This allows each Team to modify labels at their own pace without affecting other Teams, and will avoid any naming conflicts with existing labels.

    • pivotal - epic
    • pivotal - release
    • pivotal - feature
    • pivotal - bug
    • pivotal - chore

    alt text

  • Additionally, you will be prompted with the option to import labels from PivotalTracker and have them attached to the created Linear issue.

Pivotal Release -> Linear Cycle

Linear does not allow for Cycles to be created with dates in the past. Instead, we'll use Issues and Sub-Issues to mimic this behavior.

  • Every PivotalTracker story with type release will be created with the label pivotal - release
  • Any PivotalTracker story that belong to this release iteration will be added as a sub-issue

Other Notes

API Rate Limits

Logger

  • Each import attempt will create a logfile in the log directory

TODO

  • Pivotal Requester -> Linear Owner
  • Pivotal Owner(s) -> Linear Requested By
  • Pivotal Estimate -> Linear Estimate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published