Giter VIP home page Giter VIP logo

gitlabtime-exporter's Introduction

GitlabTime Exporter

Export all the time you spend on one or more projects and all of its issues with a quick and easy-to-use Python script.

Installation and Usage

git clone https://github.com/cli-ish/gitlabtime-exporter
cd gitlabtime-exporter
pip3 install -r requirements.txt
python3 export.py --gitlab-instance https://yourgitlab.com --project-names group/project,group2/project2 --access-token xxxxx-XxXxXxXxXxXxXxXxXxXx
cat timesheet_*.csv

You can obtain the access token for Gitlab at https://yourgitlab.com/-/profile/personal_access_tokens The access token needs the permission read_api to read the relevant results.

A sample output might look like the following:

Spend At,Spend At Clock,Project,Issue Id,Title,Time Spend,User,Summary
10.02.2023,12:59:17,group/project,#500,Ticket 3,0:20:00,User 3,test message 123
08.02.2023,13:59:17,group/project,#500,Ticket 3,1:00:00,User 2,Some example summary
01.02.2023,14:59:17,group/project,#400,Ticket 2,0:30:00,User 2,
01.02.2017,15:59:17,group/project,#120,Ticket 1,1:30:00,User 1,Test
01.02.2017,15:59:17,group2/project2,#20,Ticket 10,1:20:00,User 1,Test

Note

In some edge cases where you have more than 100 spend commands in an issue, there is a possibility that not all of them will be returned, I haven't tested this edge case yet. It is pretty unlikely to happen anyway. It could be fixed if the script takes these outputs into a list and retrieve them later with a paging.

gitlabtime-exporter's People

Contributors

cli-ish avatar

Stargazers

 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.