{"id":18000897,"url":"https://github.com/abbbi/getotrs","last_synced_at":"2025-03-26T07:32:18.282Z","repository":{"id":14753274,"uuid":"17474497","full_name":"abbbi/getotrs","owner":"abbbi","description":"Download otrs ticket attachments to local folder","archived":false,"fork":false,"pushed_at":"2024-06-18T05:40:23.000Z","size":56,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-21T11:50:27.499Z","etag":null,"topics":["otrs","tool"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abbbi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","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}},"created_at":"2014-03-06T10:44:42.000Z","updated_at":"2024-06-18T05:40:20.000Z","dependencies_parsed_at":"2024-10-29T23:47:13.308Z","dependency_job_id":null,"html_url":"https://github.com/abbbi/getotrs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbbi%2Fgetotrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbbi%2Fgetotrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbbi%2Fgetotrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbbi%2Fgetotrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abbbi","download_url":"https://codeload.github.com/abbbi/getotrs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245611948,"owners_count":20643934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["otrs","tool"],"created_at":"2024-10-29T23:15:17.232Z","updated_at":"2025-03-26T07:32:17.960Z","avatar_url":"https://github.com/abbbi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"getotrs\n=======\n\nDownload otrs ticket attachments. Based on the ticket-id syncs all attachments\nto a local folder and if desired decompresses possible archives. \n\nUses the new OTRS 4.0.1 REST API, for REST API setup an predefined yml\ndescription is included, see below.\n\nUSAGE\n------------\n\n\u003cpre\u003e\nusage: getotrs.py [-h] --url URL --ticket TICKET --user USER --pw PW\n                  [--folder FOLDER] [--pdf] [--unpack]\n\noptional arguments:\n  -h, --help       show this help message and exit\n  --url URL        Base URL to otrs (http://host/)\n  --ticket TICKET  Ticket ID as seen in URL (TicketID=7496 = 7496)\n  --user USER      OTRS Username\n  --pw PW          OTRS Password\n  --folder FOLDER  Folder to download stuff (default full subject ticket id)\n  --unpack         Decompress downloaded files based on filetype (zip, tar.gz)\n\u003c/pre\u003e\n\nEXAMPLES\n------------\n\nDownload all attachments to automatically created folder:\n\n `getotrs` --url https://otrs.url.de/ --ticket 7496 --user username --pw password\n\nDownload attachments to specified folder:\n\n `getotrs` --url https://otrs.url.de/ --ticket 7496 --user username --pw password --folder download\n\nDownload attachments to specified folder and decompress zipped attachments:\n\n `getotrs` --url https://otrs.url.de/ --ticket 7496 --user username --pw password --folder download --unpack\n\nPredefined path, __ticketid__ is replaced with real ticket number, so files go to /logfiles/\u003cticketnumber\u003e:\n\n\u003cpre\u003e\n getotrs --url https://otrs.url.de/ --user username --pw password --folder /logfiles/_ticketid_ --ticket 7496\n\u003c/pre\u003e\n\nCONFIG\n------------\n\nBy default getotrs attempts to load `~/.getotrs` as config file, which can be\nused to configure username/url/password. See example file.\n\nOTRS WebService\n------------\n\ngetotrs.yml includes an service description, in otrs 4.0.1 it is possible to import this service description\nwith the GenericInterface Webservices administration tool. The URL for this WebService is:\n\n https://otrs.url.de/otrs/nph-genericinterface.pl/Webservice/getotrs/TicketGet/\n\nTRIVIA\n------------\nIf a file with the same name is attached to the ticket twice, the filename will be appended\nwith an upcounting number (foo, 2_foo), 3_foo) and so on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbbi%2Fgetotrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabbbi%2Fgetotrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbbi%2Fgetotrs/lists"}