Page 1 of 1

Obtaining lists of status, category, tags etc via REST API?

Posted: 15 Jan 2023, 21:46
by stigzler
I'm probably missing something really obvious, but I can't see for the life of me how to get hold of lists for these types of properties. Given a lot of these are dynamic, there's a real need to access these if you're manipulating projects and issues through the API.

I'm basically writing a Visual Studio extension - so will need to read and write these these to and from different Mantis setups.

For example, a lot of people set up custom statuses from the default in their Mantis installations, so you couldn't go with default enums - I'd have to read these individually via the API. They're not stored in config_inc.php either, so can't get to them that way.

IS the Rest API just very underdeveloped at the moment?

Re: Obtaining lists of status, category, tags etc via REST API?

Posted: 15 Jan 2023, 22:09
by stigzler
Nemmind - got it:

/api/rest/config?option=status_enum_string

Mantis rocks. 8)

Re: Obtaining lists of status, category, tags etc via REST API?

Posted: 04 Jan 2024, 17:18
by oldsport
Status can be fetched this way, but what about categories? There is no category_enum_string option in config_defaults_inc.php. How do you retrieve the categories from the API?

Re: Obtaining lists of status, category, tags etc via REST API?

Posted: 04 Jan 2024, 20:30
by atrol
Thera are global categories and categories that are assigned to projects.
You have to retrieve the project information to get the categories as part of the REST JSON response.

Re: Obtaining lists of status, category, tags etc via REST API?

Posted: 30 Jan 2024, 09:59
by storeopinion-ca.me
Utilize the Mantis REST API to dynamically fetch custom statuses and other properties for manipulation in your Visual Studio extension. The Mantis REST API provides access to dynamic properties like custom statuses, allowing your extension to read and write them across different Mantis setups efficiently.