GithubHelp home page GithubHelp logo

devgeniem / geniem-transit Goto Github PK

View Code? Open in Web Editor NEW
1.0 23.0 0.0 536 KB

Geniem Export Import Tool for Tempo

License: GNU General Public License v3.0

JavaScript 6.94% TypeScript 93.06%
typescript cli jira tempo

geniem-transit's Introduction

Geniem Transit (Export Import Tool for Jira Tempo)

Transit is a command line tool for exporting and importing worklogs from Tempo using Tempo API Jira Tempo doesn't support worklogs import / export if you which to move project to other instance. With this tool you can sync worklogs from system to another and keep worklog history up-to-date.

Usage

Parameters

Parameter Required? Default Description Possible values
mode Yes export Operation mode import, export
start Yes for export - Start of date range to export. Format YYYY-MM-DD 2019-01-01
end Yes for export - End of date range to export. Format YYYY-MM-DD 2019-01-01
project Yes for export DEFAULT_PROJECT environment variable JIRA Project key to export worklogs BUILD, KNI
file Yes for import - Exported worklog file to import BUILD_2015-09-01_2015-12-31.json
parse No true Parse raw Tempo worklog before importing (set false when reimporting errored rows) true, false
excludeUsers No - List of author accound ids to exclude from export XXX:123,XXX:456
includeUsers No - List of author accound ids to include in export XXX:123,XXX:456

Environment variables

Variable Purpose Type Example
outDir Directory to output exported worklogs string './exports'
DEFAULT_PROJECT Set default project JIRA key string 'BUILD'
EXPORT_TEMPO_TOKEN Tempo API token for exporting string 'XX232SS'
IMPORT_TEMPO_TOKEN Tempo API token for importing string 'XX232SS'

Export

If using yarn. yarn start --start=2019-01-01 --end=2019-01-03

Or using npm npm run start -- --start=2019-01-01 --end=2019-01-03

Import

If using yarn. yarn start --mode=import --file=BUILD_2015-09-01_2015-12-31.json

Or using npm. npm run start -- --mode=import --file=BUILD_2015-09-01_2015-12-31.json

Development

This tool is developed with Typescript 3.7 Couple of other dependencies are needed also:

  • minimist - for easier command line argument usage
  • dotenv - for .env file usage
  • node-fetch - for interacting with http services

geniem-transit's People

Contributors

laurikatajisto avatar

Stargazers

Andrew Johnson avatar

Watchers

Panu Ervamaa avatar Henryk Helsky avatar James Cloos avatar Sami Karjalainen avatar Mikko Paasto avatar Jussi Löf avatar  avatar Karlo Tuominen avatar Niko Karppinen avatar Jussi Alanen avatar villesiltala avatar Petteri Tiilikka avatar Villehard Pietarinen avatar Tiia Ohtokallio avatar Jaakko Lehtonen avatar Tuomo Karvinen avatar Timi-Artturi Mäkelä avatar  avatar Jani Kangas avatar Aleksi Jetsu avatar Ahti Ruusuvuori avatar Henri Kuittinen avatar  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.