| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Copyright (c) 2010 - 2012 Amethyst Reese - https://noswap.com
Copyright (c) 2012 - 2021 MantisBT Team - mantisbt-dev@lists.sourceforge.net
Released under the MIT license
See the Changelog.
Define snippets of text that can be easily pasted into text fields.
The plugin requires MantisBT version 2.3 or higher.
If you need compatibility with older releases of MantisBT, please use legacy versions of the plugin, as per table below:
| MantisBT version | Plugin version |
|---|---|
| 1.3 | 1.x (master-1.3.x branch) |
| 1.2 | 0.6 |
The following options are available from the plugin's Configuration page:
Edit Global Snippets: Access level required to manage global snippets (defaults to ADMINISTRATOR)
Use Global Snippets: Access level required to use global snippets (defaults to REPORTER)
Edit Own Snippets: Access level required to manage personal snippets (defaults to REPORTER)
Use Snippets For: Specifies where Snippets can be inserted. The following fields are available:
Sort order in Snippets selection lists: Controls the order in which Snippets are shown in the selection list. The following options are available:
[!NOTE Users can override the default Sort order defined by the administrator from the My Snippets page.
Once the plugin is installed and configured, you need to define at least one Snippet, otherwise the selection list will not be shown.
The following placeholders are supported in the Snippet's text; they will be replaced by the corresponding contents when inserted:
| Placeholder | Description |
|---|---|
| {user} | your username |
| {reporter} | the bug reporter's name |
| {handler} | the bug handler's name |
| {project} | the project name |
Each configured text field will have a selection list above it, which can be used to pick the desired Snippet.
Once selection is made, the Snippet's text will be inserted in the field at the current position. If text is currently selected, the Snippet will replace the selection.
By default only the Bug Note field is configured to use Snippets. Other text fields (Description, Steps To Reproduce as well as Additional Information) can be setup to use Snippets via configuration page Manage > Global Snippets > Configuration.
The following public API endpoints can be used to manage Snippets.
Base URL is https://example.com/mantisbt/api/rest/plugins/Snippets
Search for and return a list of Snippets available to the user.
Parameters:
Retrieve the list of Global or the user's Personal Snippets.
Parameters:
Create a new snippet. Provide data as JSON body
{
"name": "Snippet's name",
"text": "Snippet's body",
"global": true
}Note that global is optional and defaults to true, which will create a a global snippet if unspecified. If false, then a personal Snippet will be created for the user calling the API endpoint.
Update an existing Snippet.
Note
The global state cannot be changed.
{
"name": "New name",
"text": "New body"
}Delete snippet.
The following support channels are available if you wish to file a bug report, or have questions related to use and installation:
| Back | FazBrowse Home | New Git URL |