Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lttr/jira-to-timesheeter
Simple tool for copying timesheets
https://github.com/lttr/jira-to-timesheeter
deno deno-deploy tool typescript
Last synced: about 1 month ago
JSON representation
Simple tool for copying timesheets
- Host: GitHub
- URL: https://github.com/lttr/jira-to-timesheeter
- Owner: lttr
- Created: 2021-10-18T19:25:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-20T12:09:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T21:07:13.468Z (3 months ago)
- Topics: deno, deno-deploy, tool, typescript
- Language: TypeScript
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jira to Timesheeter
A tool that helps me manage my time tracking records.
It is specific to tools that are used at [Hanaboso](https://hanaboso.com/)
however there is some interesting logic that can be used elsewhere (like an
algorithm for counting working hours in any given year).## Features
- Renders a big table with all the tracking records and some stats on top of
that (like how many hours one has already done this year).
- A tool for copying timesheets from Jira (with plugin Clockwork) to Hanaboso
Timesheeter.## Tech
- Simple
[http](https://doc.deno.land/https://deno.land/[email protected]/http/mod.ts/~/serve)
server on [Deno](https://deno.land).
- [uhtml-ssr](https://github.com/WebReflection/uhtml-ssr) library for templating
based on tagged tamplate literals
- [Temporal](https://tc39.es/proposal-temporal/docs/) polyfill for playing with
dates
- Running on [Deno Deploy](https://deno.com/deploy/).## Requirements
Install Deno.
## Usage
### Local
Before running locally create a file `params.json` based on `params.json.sample`
with your values.You can perform a dry run by adding `--dry-run` flag:
```
deno run -A --unstable local.ts --dry-run
```### Server
A server can be started (with autoreload)
```
make dev
```Or deploy it to Deno Deploy.
Its main route expects a POST request with the same object that is in
`params.json.sample`.This request can be called e.g. every day from a cron job.
Its main route expects a GET request which will return a page full of data from
Timesheeter. Expects credentials from HTTP Basic auth.