curl --request GET \ --url 'https://softwaresolutions.mantishub.io/api/rest/issues?filter_id=unassigned' \ --header 'Authorization:h58meqhpRzLfnGRf6Pu8FA8thjWGvBFd'
I don’t know about you but, I spend a lot of my time in the MantisHub ‘View Issues’ page when I want to find the issue or issues I need. ‘My View’ dashboard is great for showing me what I need to prioritize and what’s going on at the moment. But when it comes to getting the whole picture, the background, requirements and other related information, I jump onto the View Issues page. I’ve added custom fields to my projects and set them to appear in my filter as a search field. I extensively used tags to help me find what I need. And my saved filters are invaluable. I have a very special relationship with my MantisHub filter so I was super excited to see the new improvements.
The latest MantisBT updates provide a more streamlined look, improved UI as well as providing some added functionality. I love that I can now collapse my filter and get a shortcut to my usual go-to’s, my free text search, filter reset or my saved filters. It gives a little more room for my list of issues and looks that little bit leaner.
Other handy recent additions include:
- checking and unchecking multiple issues using my shift key so I can narrow down my filtered list even further for printing or exporting.
- setting my temporary filters and permalinks as persistent. That means if I navigate away from that filter it doesn’t disappear on me. I can always bring it up again just by pressing the back button.
But my favourite new feature by far is that I can now run Summary reports and Issue trends on my filtered issues!! Yay!! (MantisBT nerd alert!).
If you head directly to the Summary tab you get a great range of data and statistics. You can also install the Graphs plugin to get graphic representations of your data. Graphs are presented by a variety of variables (developer, status, priority etc) and are great for pasting into your reports. However, the statistics in the Summary page are applied to all your issues within your MantisHub, filterable only by your project selector to limit results to a single project if needed.
With these new updates, you can now run these stats on your specific filter results! So, sort your issues down to a category, reporter, a sub-set of projects, date created or updated… version information, custom field values or any combination of these AND run reports and graphs on only that information!! Are you excited yet!!??
Well, if that didn’t do it for you I don’t know what will. For me, this has made things that much more efficient when evaluating various aspects of my MantisHub issues. I can get answers to all sorts of questions like what is the average resolution time for a specific category? OR for tickets created in this week, who has worked on the most tickets? OR which of our non-resolved issues created last month has been open the longest? You can always export to Excel or CSV to play even more with your issue data or utilize our API to integrate with a dedicated reporting tool but this might save you a step or two.
If you aren’t as yet familiar with your Mantis filter you should absolutely become acquainted. Check out these video tutorials on using your MantisHub filter and on saving and sharing your filters. And you can always read up on the KB articles or search the support page and documentation for any other questions you have.
Enjoy your new, buff filter! Don’t forget to follow this blog and follow @mantishub on twitter for all the latest MantisHub updates. Til next time!
The beauty of hosting with MantisHub is that you will never need to worry about the retention, accessibility or integrity of the data stored in your MantisHub issue tracking system.
All the advantages of cloud hosting are at your fingertips. Like logging into your system from any place or any machine securely. No need to worry about the security of your servers or disaster recovery. MantisHub hosting is robust, reliable, and secure, with daily backups of your data.
With all this convenience, you still have access to export and extract your data in several ways. Whether you need to integrate it into another system, play around with some numbers, produce reports or simply for peace of mind, you’re covered with these features.
Download all MantisHub data
Any administrators within the system can access the backup option from the Manage page. From here they can generate a full backup of your MantisHub to get a snapshot of the database at any point in time. When you generate a backup, two zip files will be available for download :
- “database and configuration” file which contains a MySQL dump of your database and your configuration files.
- “attachments” file containing all attachments uploaded to your system.
You can upload the db.sql file to a local MySQL service for verification and access it from your favorite database viewer and analytics tools.
With the attachments, extract the zip files to get access to the attachment files. The attachment file names will be encoded and will have to be correlated with the database to get the file meta-data.
Here’s the KB article for more information on generating and downloading backups.
As MantisHub already create a full daily backup of your data you will probably never need to use it but it may be what you need to tick some boxes on your corporate policies checklist for security or data retention.
The filters within the My View page can allow you to display a specific set or subset or your issues. If you’re not yet familiar with how to use filters, check out this article and get to it as it will save you a heap of time trying to find the information you need.
Once you have grabbed the issues you are interested in, you have the option to Print Reports.
To print it, just click the button. You can print all the listed issues or further cull the list and just display those selected. There are two options to print to; to a Microsoft Word document or HTML and it will include the Issues Details view of your issues.
Step by step instructions can be found in this KB article.
Exporting to CSV or Excel
There is also the option provided to export issue details to CSV or Microsoft Excel also from the View Issues page. This means you can do a whole lot more with your data because you can plug these into other systems to manipulate how you want. For example, MantisHub has some in-built reporting but if you’re looking for specific statistics on your issues this option can allow you to generate graphs and tables using Excel or some other application that allows CSV import.
It’s important to note that you have to define what issue fields and information you want to be included in the export. This needs to be configured in the Managing Columns section. This can be configured at a project level by the administrator [Manage – Manage Configuration – Manage Columns] but users can override this within their personal preferences [My Account – Manage Columns]. All fields that can be exported (including your custom created fields) are listed in the All Available section. Have a read about it in the Managing Columns KB article. And help with exporting can be found in this article :).
If you have Mantis Time Tracking feature turned on, you can also export this information to Excel or CSV to get some statistics on time your team spent working on issues. This is available through the Time Tracking page that is added to the menu when you enable Mantis time tracking.
For the technically savvy you can access information from your MantisHub through our API. This does require programming knowledge and can be a super powerful tool for pulling specific information from your system and manipulating it as needed. You can retrieve details of your projects, configuration, users, issues and filters. And the API is continually expanding so keep an eye out. To read more about MantisHub API options check out this KB article.
So if you’re looking for that flexibility while still getting the convenience of secure, reliable service, there’s your data on a silver platter :).
At MantisHub we have been working for a while on the new modern REST API for remotely accessing MantisHub data and configuration. We now feel that we have enough coverage of MantisHub functionality to encourage our users to switch to it. The API can provide a great way to integrate MantisHub into your build system, IDEs, test management systems, other SaaS applications, or your own applications.
Tools for using the API
Similar to what you expect from any REST API, you should be able to easily leverage it from your preferred language and platform. You can get the documentation for the API from our API documentation. The API is published via Postman API network enabling you to easily download Postman definitions for the API and start hacking away. If you don’t already have Postman, you can download it from Postman website. For command line access to MantisHub, we developed PowerShell module which can be used from Windows, Mac or Linux. You can also use curl which is available by default for Mac and Linux.
For accessing the API you will need to authenticate, and for this you will need to generate a secure API token from within your MantisHub rather than passing username password. Instructions for generating a token can be found in our KB article here. Remember to record your generated token since it will only be displayed on generation and once you exit out you won’t be able to get it again. You should, of course, have separate tokens for each of your integrations which provides you with the ability to manage each integration independently and associate such integrations with appropriate users or system accounts in your system (e.g. a build user account).
Individual users, as well as administrators, can generate tokens so make sure the user has access to the functionality needed for the integration. For example, if a token is generated for user Bob who is a reporter for Project X and you run an API call using the token to update an existing issue or delete it, the call will fail. The only time you won’t need a token is if you have anonymous access enabled for your MantisHub and the integration only requires read-only access.
API endpoint and Resources
The Endpoint for your API will be
Following are examples of API capabilities around entities defined in MantisHub:
- Issues – Retrieve one issue, retrieve issues matching a filter, create, delete or update issues, add notes, tags, relationships, attachments, etc.
- Projects – Get a full list of all projects accessible to logged in user along with project specific configuration like categories, versions, custom fields, etc.
- Filters – Retrieve all filters definitions, a single filter definition, or delete filters.
- Users – Create or delete users or retrieve your user information.
- Configuration – Retrieve one or many configuration options.
- Localized Strings – Retrieve one or many Local Strings.
The API library is still growing so be sure to refer to the documentation for the most up-to-date API definitions.
MantisHub has a wide range of features and customizations that allow you to get the cover most of your software bug tracking and general issue tracking needs. We also provide a number of plugins and integrations including chat apps Slack and Hipchat, Source control integrations with GitHub and Bitbucket, JetBrains, TestLodge for test case management and more. And now with the REST API… your options just got even bigger!
**MantisHub’s previously supported SOAP API is now on the deprecation path in favor of the REST API.
Some of you Mantis users out there are most likely in need or already using a test case management tool to pickup any bugs in your software product. You may be thinking “How useful would it be to have my issue tracker and test case manager work together!” Well there are a number of test case managers out there that do advertise integration with Mantis and their instruction are available for you to test out.
MantisHub team is currently working on testing some of these out for you but if you’re after tried and true, we’ve been working with our friends at TestLodge and have developed step by step instructions to allow you to integrate MantisHub with their popular test case managment tool. Known for its clean and simple interface (sound familiar? 😉 you can starting running through test cases straight away. Linked with your clean and simple MantisHub service, this can save you a heap of time.
It’s really easy to setup the integration, you can check out our knowledge base article for the full procedure and functionality details. TestLodge have even produced a short video tutorial to help get you going that you can find linked in our article.
With the TestLodge integration you can connect to your MantisHub service using an easily generated, secure API token. We recommend you create a new, appropriately named user within MantisHub to use for linking to TestLodge so it’s easy to identify TestLodge generated issues. Once linked, you can automatically create issues with MantisHub when tests cases fail. You can setup within TestLodge the MantisHub project that you want these issues to be created in and also set the MantisHub issue’s assigned user, category, priority and severity all from within TestLodge. There’s even the capability to pull status updates on MantisHub issues via API and re-run tests based on the current issues status (e.g. resolved).
Our friends at TestLodge are offering a great deal to all MantisHub users, sign up for a free TestLodge trial and integrate it with your MantisHub service and they’ll give you a 10% discount on your TestLodge subscription. Reach out to their team at help.testlodge.com quoting the coupon Mantis10 before your free trial ends to receive this offer.
Pair MantisHub’s intuitive powerful tracker with this popular and efficient test case manager to even further simplify your software project delivery process.
MantisHub provides several possibilities for connecting with other systems. Whether it is through email reporting, CSV import/export, or through its API. Among these, the API is the most powerful and automation-friendly way to extend MantisHub.
So if you are a developer, the API will enable you to create great end-to-end scenarios. Whether it is to auto-create issues for build failures, crashes in production, or sending daily reports based on pre-defined filters.
To make this easier, we have created client libraries that provides an easy way to leverage the API. We’ve open sourced these libraries and made them available through our github organization.
Since MantisHub API is SOAP based webservice, it is also easy to auto-generate proxy clients for any language using the appropriate language specific tool chain.
So whatever integration or automation scenario you have in mind, checkout out our API.
The possibilities are endless…
API tokens provide users with more control, convenience, visibility and security when providing other services and apps access to their MantisHub.
Here are some of the benefits of API tokens compared to use of passwords:
- Tokens are 32 characters long and cryptographically secure, hence, they are much more secure than user passwords.
- Tokens are generated by MantisHub, hence, they are not going to be shared passwords with any other internet services that the users use.
- Users have visibility on when each token was last used to access MantisHub.
- Users can revoke one of the tokens without impacting others. Hence, can selectively deny access to specific services.
- Users can change their passwords without affecting the validity of the API tokens.
Users can generate API tokens via their My Account – API tokens. The tokens are only displayed once and should be used for one integration. The tokens can be passed in the password field when calling the MantisHub SOAP APIs. Note that it can’t be used to login via the MantisHub login page.