Page 1 of 1

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

Posted: 26 May 2021, 12:44
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!

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

Posted: 26 May 2021, 13:41
by atrol
There is no note_attr in REST API
Check the documentation for available functionality in REST
https://documenter.getpostman.com/view/ ... a66112c24d

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

Posted: 26 May 2021, 14:47
by theo harsant
Thank you for the quick answer. Is the support for this field in the to do list for future releases?

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

Posted: 26 May 2021, 19:16
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.