{"id":22506825,"url":"https://github.com/josuigoa/worklog_jira","last_synced_at":"2026-02-11T02:48:30.709Z","repository":{"id":74083898,"uuid":"499438932","full_name":"josuigoa/worklog_jira","owner":"josuigoa","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-10T14:43:02.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-08-30T14:40:03.200Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josuigoa.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-03T08:38:18.000Z","updated_at":"2022-06-03T10:16:48.000Z","dependencies_parsed_at":"2023-11-10T15:52:04.241Z","dependency_job_id":null,"html_url":"https://github.com/josuigoa/worklog_jira","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/josuigoa/worklog_jira","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuigoa%2Fworklog_jira","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuigoa%2Fworklog_jira/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuigoa%2Fworklog_jira/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuigoa%2Fworklog_jira/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josuigoa","download_url":"https://codeload.github.com/josuigoa/worklog_jira/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuigoa%2Fworklog_jira/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T02:08:56.257Z","status":"ssl_error","status_checked_at":"2026-02-11T02:08:51.338Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T00:49:22.234Z","updated_at":"2026-02-11T02:48:30.695Z","avatar_url":"https://github.com/josuigoa.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Worklog Jira\r\n\r\nA little NodeJs script that extract information from [worklog](http://github.com/ideckia/action_worklog) JSON file and creates Jira issues worklog (time spent in the issue).\r\n\r\n## Arguments\r\n\r\nYou must call the script with some mandatory parameters:\r\n\r\n* `worklogFile`: The path of the JSON file to extract the information\r\n* `url`: The url of your Jira\r\n* `u`: Jira username\r\n* `p`: Jira password\r\n\r\n## How does it work\r\n\r\nWorklog JSON file structure looks like this:\r\n\r\n```json\r\n[\r\n    {\r\n        \"day\": \"2022-06-01\",\r\n        \"totalTime\": \"09:30\",\r\n        \"exitTime\": \"16:15\",\r\n        \"tasks\": [\r\n            {\r\n                \"start\": \"07:15\",\r\n                \"finish\": \"08:45\",\r\n                \"time\": \"01:30\",\r\n                \"work\": \"my-issue-5\"\r\n            },\r\n            {\r\n                \"start\": \"09:30\",\r\n                \"finish\": \"11:30\",\r\n                \"time\": \"02:00\",\r\n                \"work\": \"gone out\"\r\n            }\r\n        ]\r\n    }\r\n]\r\n\r\n```\r\n\r\nThis script takes every day of the file and with every task of the day does this:\r\n\r\n* Calls a Jira endpoint to check the _work_ issue exists.\r\n  * If it doesn't exist, marks the task with a `[ERROR] `.\r\n  * If it does exist, calls Jira to create a worklog for that _day_ and time spent in the issue with the value of _time_\r\n    * If the creation is successful, the _work_ will be overwritten with a `[DONE] ` prefix.\r\n\r\n### Execution example\r\n\r\n`node app.js -worklogFile /path/to/worklog.json -url http://my.jira.local/ -u myJiraUser -p myJiraPass`\r\n\r\nWhat it does is:\r\n\r\n* Calls Jira to check if the issue with key `my-issue-5` exists (let's imagine it actually exists)\r\n  * Calls Jira to create a worklog for `my-issue-5` with the value _01:30_ the day _2022-06-01_\r\n    * If it goes well now the _work_ value will be updated to `[DONE] my-issue-5`\r\n    * If there where some errors the _work_ value will be updated to `[ERROR] my-issue-5`\r\n* Calls Jira to check if `gone out` exists\r\n  * It doesn't exists and marks the task with a `[ERROR] `\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosuigoa%2Fworklog_jira","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosuigoa%2Fworklog_jira","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosuigoa%2Fworklog_jira/lists"}