Mantis integration
Integrate Mantis with Unity Version Control and track issues.
Read time 3 minutesLast updated 21 days ago
Learn how to configure and use the Mantis extension. The Mantis extension is compatible with Mantis versions 1.11.4, 1.1.0, 1.1.8 and higher.
Configure the Mantis integration
Configure the Mantis integration to work with Unity Version Control (UVCS) for the Mantis server and the UVCS client.Configure the Mantis server
To set up the Mantis extension functionality, copy the script fileplastic.phpplasticscm_install_path/client/extensions/mantisConfigure the client
There are different methods to configure the client depending on your operating system: Regardless of your operating system, you need to configure the Mantis parameters.Configure the client on Windows
- In the Unity DevOps Version Control desktop application, select the context menu, then select Preferences.
- Select Issue Trackers.
- Select Bind to this issue tracking system.
- Select the repository that you want to apply binding to:
- If you want to bind to all of your repositories with the issue tracker, select Repositories.
- If you want to bind to a particular repository, select that repository.
- Select the working mode you want to use:
- Bind issues to Unity VCS branches (recommended): links one task to one branch.
- Bind issues to Unity VCS changesets: links one or more tasks to one or more changesets.
- Configure the Mantis parameters.
Configure the client on Linux and macOS
Set a local Mantis configuration on a Linux or macOS machine:- Create the path , and replace
issuetrackers/<server_port>/<repository>with one of the following values:repository- The name of the repository you want to link to the issue tracker.
- to link all of your repositories to the issue tracker.
allrepos
- Copy the example into the new path from one of the following locations:
mantis.conf- Linux:
<plasticscm_install_path>/client/extensions/config_samples - macOS: .
/Applications/PlasticSCM.app/Contents/IssueTrackerConfigSamples
- Linux:
- In the file, edit the WorkingMode parameter to assign one of the following values:
mantis.conf- : links one task to one branch.
TaskOnBranch - : links one or more changesets to one or more branches.
TaskOnChangeset
- Configure the Mantis parameters.
- Edit your file to add the following key:
client.conf<Extensions> <Extension AssemblyFile="plasticscm_install_path/client/extensions/mantis/mantisextension.dll" /></Extensions>
Mantis parameters
Use the following parameters to further configure your Mantis integration:Parameter | Description |
|---|---|
| Mantis Base URL | Specify the URL where the Mantis server is installed and runs. |
| User name | Enter a valid Mantis user. |
| Branch prefix | An optional parameter if you work in the task on branch mode. Specify the branch prefix to bind those UVCS branches to Mantis tasks. |
| Plastic PHP path | The directory of the php file. |
| Show bug PHP path | Show the PHP path of bugs. |
| Encoding | Edit this value if you need to change the encoding. The default is |
Use the Mantis integration
Use one of the following working modes for your Mantis integration: Find issue information in the Mantis Extension panel. You can open the issue in the browser, add a new issue, or delete an issue. If you select the Open issue in browser icon, or double-click on the Mantis task, UVCS opens the associated issue in a browser window.Task on branch workflow
Task on branch is the default working mode. Each Mantis task links to a branch in Unity Version Control (UVCS).Link a branch to an issue
The branch name connects the branch to a Mantis issue:- Create an issue in Mantis. Mantis assigns each task a number. Refer to the Mantis documentation on Issue lifecycle and workflow.
- Create a new branch in UVCS. To link the branch, name the branch with the Mantis task number, preceded by the branch prefix.
- For example, if you configured the branch prefix , and the Mantis task number is 4, name the branch
task.task004
- For example, if you configured the branch prefix
Task on changeset workflow
The task on changeset working mode allows you to link multiple changesets to multiple branches.Link a changeset to an issue
Use the UVCS desktop application to link changsets to Mantis issues:- Create an issue in Mantis. Mantis assigns each task a number. Refer to the Mantis documentation on Issue lifecycle and workflow.
- Make the changes in UVCS.
- On the Pending Changes tab, select Show tasks to open the tasks side panel.
- Select the Add new issue (+) icon.
- Select issues from the list of pending tasks, or enter a comma-separated ID list if you can’t find the correct issue.
- Select OK.