Redmine Command Line Interface – redlist
redupload, redupdate, redshow, and now redlist. The new one prints the list of issues in plain text, project-wise or globally.
$ redlist -p test localhost/redmine # Tracker Status Subject Assignee Due date 2 Feature In Progress Test Feature Szabó Gergely 1 Bug In Progress Test Issue Szabó Gergely 2013-05-26
Uploading files? Check.
Creating or updating issues? Check.
Showing issue details? Check.
Listing issues? Check.
Redlist uses the CSV export feature of Redmine. As Text::CSV
is not part of the standard Perl library, I decided to write my own CSV parser. It seemed easy until I tried it on an old mine, 0.9.3 to be precise. In which case it fell apart as the bastard puts each and every existing attribute into the CSV, including the multiline Description. What started with two simple regular expressions, ended up with five, plus a state-machine.
There was some trouble with encoding too. For best results, set your terminal’s locale to utf-8, as well as Redmine’s csv-encoding. On Debian, the yml files are in /usr/share/redmine/config/locales/
for each language. Look for
general_csv_encoding: UTF-8
Bot the old mine’s output is still too wide for a terminal. Until you define your personal filters, that is. Create ~/.redgit
and add
[redlist] Created Updated Description Parent task Estimated time
Whatever. It’s still on Github: http://github.com/subogero/redgit