Accessing Information from Mantis GUI via REST API

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
jcordes74
Posts: 8
Joined: 24 Jun 2022, 20:01

Accessing Information from Mantis GUI via REST API

Post by jcordes74 »

Hello Fellow Bug Coders,

So I currently have a function that will create a Mantis Ticket when called on, and it would make my life SO much easier if there was a way to GET the information from the pull down menu's in the Mantis GUI using REST API. For example, when creating a ticket if the possible options for 'category' were like ("MantisBT", "Documentation", "Software", etc.) is there a way to get that information? I.e., the possible values for what can be entered in.

I've searched for a while but can't find anything. Anything anyone is willing to advise me on is greatly appreciated.
obmsch
Posts: 26
Joined: 26 Mar 2013, 22:19

Re: Accessing Information from Mantis GUI via REST API

Post by obmsch »

I'm not sure what you are exactly looking for, but you can retrieve the 'categories' for either
all projects (Get('.../projects/')) or a specific project (Get('.../projects/#')) over REST API.
The JSON response contains an (sub)array ('categories') for all requested projects.
Post Reply