GithubHelp home page GithubHelp logo

nachochiappe / jira-worklog-automation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

This project automates the process of logging work hours from a CSV file into JIRA using the JIRA REST API.

Python 100.00%

jira-worklog-automation's Introduction

JIRA Worklog Automation

This project automates the process of logging work hours from a CSV file into JIRA. It reads time entries from a CSV file exported from the Toggl Track extension, calculates the total duration for each ticket, and logs the hours in JIRA using the JIRA REST API.

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Python 3.6+.
  • You have a JIRA account with API access.
  • You have the required permissions to log work in JIRA.

Installation

  1. Clone the repository:

    git clone https://github.com/nachochiappe/jira-worklog-automation.git
    cd jira-worklog-automation
  2. Create a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install the required packages:

    pip install -r requirements.txt
  4. Set up environment variables:

    • Create a .env file in the root directory of the project.
    • Add the following variables to the .env file:
      USERNAME=[email protected]
      API_TOKEN=your_api_token
      SUBDOMAIN=your_jira_subdomain

Usage

  1. Activate the virtual environment:

    source venv/bin/activate
  2. Run the script:

    python log_hours_to_jira.py <start_date> <end_date>

    Replace <start_date> and <end_date> with the desired date range in YYYY-MM-DD format.

Example

To log hours from June 1, 2024, to June 30, 2024:

python log_hours_to_jira.py 2024-06-01 2024-06-30

jira-worklog-automation's People

Contributors

nachochiappe avatar

Watchers

 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.