How to Integrate Kiwi TCMS with Redmine for Bug Reporting

Kiwi TCMS is a powerful open-source test management platform. Redmine is a flexible issue tracker. By integrating the two, you can streamline your QA workflow by allowing test failures in Kiwi TCMS to be reported directly as Redmine issues.

This guide walks through the integration — including how to authenticate using a Redmine API access key, which is essential if Redmine uses OAuth (e.g., via Keycloak) and no longer supports local passwords.


Prerequisites


  1. Enable Redmine’s REST Web Service
  • Log in to Redmine as an admin
  • Navigate to Administration → Settings → Authentication
  • Enable the REST web service
  • Click Save

This is required for Kiwi TCMS to communicate with Redmine via API.


  1. Retrieve the Redmine API Access Key
  • Log in to Redmine as a user
  • Go to My account
  • Scroll to API access key
  • Click Show, then copy the key

You’ll use this key in Kiwi TCMS to authenticate without a password.


  1. Create a Matching Project in Redmine

For the integration to work properly, Redmine must contain a project whose name exactly matches the product name in Kiwi TCMS.

This ensures Kiwi TCMS can correctly map bug reports to the corresponding Redmine project.


  1. Patch Kiwi TCMS for API Key Support

If you’re using an unpatched version of Kiwi TCMS, it may not support API key authentication yet.

Apply PR #4043, adds an API access key field and authentication logic for Redmine

After patching, restart Kiwi TCMS and apply migrations.


  1. Add Redmine as a Bug Tracker in Kiwi TCMS
  • Log in to https://kiwi.maksonlee.com/admin/
  • Navigate to TestCases → Bug trackers
  • Click Add Bug tracker
  • Fill in the form:
FieldValue
NameRedmine
Tracker typetcms.issuetracker.types.redmine.Redmine
Base URLhttps://redmine.maksonlee.com
API URLhttps://redmine.maksonlee.com (same as base)
API username(leave blank if using API key)
API password(leave blank if using API key)
API access keyPaste your Redmine API key here
Bug URLLeave empty or use the default fallback
  • Click Save and continue

  1. Report a Bug to Redmine from Kiwi TCMS
  • Go to a test execution and mark it as Failed
  • Click Report bug
  • Kiwi TCMS will submit the bug using the Redmine API
  • The Redmine issue URL will be shown in the execution details

Why API Key Is Important

If Redmine uses OAuth (e.g., Keycloak):

  • Users don’t have local passwords
  • Username/password auth fails
  • API access key is the only way to authenticate
  • Patch #4043 makes this possible

Even if you’re not using OAuth, the API key is a secure and modern alternative to credentials.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top