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

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
stigzler
Posts: 10
Joined: 18 Mar 2019, 23:36

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

Post 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?
stigzler
Posts: 10
Joined: 18 Mar 2019, 23:36

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

Post by stigzler »

Nemmind - got it:

/api/rest/config?option=status_enum_string

Mantis rocks. 8)
oldsport
Posts: 1
Joined: 04 Jan 2024, 17:14

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

Post 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?
atrol
Site Admin
Posts: 8401
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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.
Please use Search before posting and read the Manual
storeopinion-ca.me
Posts: 1
Joined: 19 Jan 2024, 08:52

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

Post 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.
Post Reply