Page 1 of 1

Accessing Information from Mantis GUI via REST API

Posted: 15 Sep 2022, 16:03
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.

Re: Accessing Information from Mantis GUI via REST API

Posted: 16 Sep 2022, 18:46
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.