Extension for Visual Studio Code to fetch data from Redmine via the REST API and convert it to a templated document.
- Get an issue from your Redmine and convert it to a new document using a template file.
- Mustache is available for template.
Your Redmine must allow REST API requests. It can be turned on through the Redmine settings page (/settings
).
Set the root URL of your Redmine to redmine2doc.redmineApiBaseUrl
in config.
For example: "redmine2doc.redmineApiBaseUrl": "https://redmine.sample.com/"
This extension also needs API access key for Redmine. You can get the key at your own "my page" (/my/account
). Set the key to redmine2doc.redmineApiKey
in config.
For example: "redmine2doc.redmineApiKey": "j9352f9a8n2n3raojdlfaldfaf382831vzcz8et5"
Redmine data is going to be converted with a Mustache template.
Place a template such as the following and specify the file path through redmine2doc.templatePath
in config.
Each attribute of issue can be used as a variable in the template as follows.
{{subject}} (#{{id}})
=====
* Date: {{created_on}}
* Status: {{status.name}}
* Priority: {{priority.name}}
* Category: {{category.name}}
* Tracker: {{tracker.name}}
* Author: {{author.name}}
{{{description}}}
{{#journals}}{{#notes}}
- - -
### {{user.name}} ({{created_on}})
{{{notes}}}
{{/notes}}{{/journals}}
At least you have to set redmine2doc.redmineApiBaseUrl
and redmine2doc.redmineApiKey
.
This extension contributes the following settings:
redmine2doc.redmineApiBaseUrl
: URL to Redmine REST APIredmine2doc.redmineApiKey
: Redmine API Key to get dataredmine2doc.templateDir
: Directory path to Mustache templatesredmine2doc.resultFileType
: File type of the result documentredmine2doc.projectListApiLimit
: Limit param for project list APIredmine2doc.issueListApiLimit
: Limit param for issue list APIredmine2doc.issueOrderDirectionDesc
: If true, show issues in descending orderredmine2doc.timezone
: Timezoneredmine2doc.datetimeFormat
: Format string for date and timeredmine2doc.excludePrivateNotes
: If true, exclude private notes from the issue's journals
Initial private release.
Add timezone conversion for issue and journal's timestamp.
Add an option to exclude private notes.