REST API- Inserting a note with a value for the field note_attr

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
theo harsant
Posts: 16
Joined: 30 Jan 2020, 15:07

REST API- Inserting a note with a value for the field note_attr

Post by theo harsant »

Hello all,
I am trying to insert a note through the REST API. Everything works as expected, except for the field note_attr. I use it to store a string value (ie OK, SKIP), but this value is not inserted. Is is a normal behaviour?

Here is the json I use:
{"text":"testAPI","note_attr":"OK","view_state":{"name":"public"},"files":[{"name":"test_liennropm.csv","content":"xxxxxxxxxxxxxxx"}]}

I am using Mantis BT verison 2.23.0.
I checked in the source code and note_attr seems to be set as an empty string in the function bugnote_add from the class bugnote_api.php.
Is it by design?

Thanks in advance!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: REST API- Inserting a note with a value for the field note_attr

Post by atrol »

There is no note_attr in REST API
Check the documentation for available functionality in REST
https://documenter.getpostman.com/view/ ... a66112c24d
Please use Search before posting and read the Manual
theo harsant
Posts: 16
Joined: 30 Jan 2020, 15:07

Re: REST API- Inserting a note with a value for the field note_attr

Post by theo harsant »

Thank you for the quick answer. Is the support for this field in the to do list for future releases?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: REST API- Inserting a note with a value for the field note_attr

Post by atrol »

I don't expect that it would be implemented.
The field is used internally to hold the list of user ids when sending a reminder.
Please use Search before posting and read the Manual
Post Reply