Giter Club home page Giter Club logo

harvest-to-jira's Introduction

harvest-to-jira

Exports time entries from the Harvest timelogging tool to Jira as worklog items.

Usage

I recommend using volta to manage node versions when using this tool.

Install node dependencies with the following command:

npm i

Run the tool with:

npm start

Run options:

  • week: input is taken as a date; the tool will then calculate the Sunday-to-Sunday window within which the chosen date falls. This is the date range it'll use for exporting time entries
  • dry run: when run in "dry" mode, the tool will log Jira worklog items to the console instead of sending them to the Jira API
  • path to config file: path to your configuration file

Configuration

Create a configuration file within config/projects.json (default path that the app will expect, but you can change it to a different one).

The following user information is needed:

For each entry in projects:

  • Harvest ID: project IDs can be found in the "reports" tab in Harvest
  • Jira project key: Based on the Jira issue key the project has assigned. The code before the id number. Example: CG-1234. In this case, it would be "CG"
  • Atlassian domain: the subdomain from the url you use to access Jira
  • Atlassian API token: From https://id.atlassian.com/manage-profile/security/api-tokens
  • Atlassian Account Email: The email you use for Jira

Example configuration file:

{
  "user": {
    "harvestUserId": 1111111,
    "harvestAccessToken": "xxxxxxx.xx.xxxxxxxxx",
    "harvestAccountId": 222222
  },
  "projects": [
    {
      "harvestId": 33333333,
      "jiraProjectKey": "PFMLPB",
      "atlassianDomain": "lwd",
      "atlassianApiToken": "zzzzzzzzzzzzzzzzzzzzzzzz",
      "atlassianAccountEmail":"[email protected]"
    },
    {
      "harvestId": 44444444,
      "jiraProjectKey": "RI",
      "atlassianDomain": "postc-massgov",
      "atlassianApiToken": "yyyyyyyyyyyyyyyyyyyyyyyy",
      "atlassianAccountEmail":"[email protected]"
    }
  ]
}

Need help? Wanna contribute?

Please don't hesitate to reach out! I wrote this tool for personal use when I was feeling particularly lazy (the time spent on it so far probably won't pay off), so it's a bit rough around the edges.

harvest-to-jira's People

Contributors

jaredhm avatar chrismshelton avatar

Stargazers

Karen Da Cruz avatar

Watchers

James Cloos 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.