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!
REST API- Inserting a note with a value for the field note_attr
Moderators: Developer, Contributor
-
- Posts: 16
- Joined: 30 Jan 2020, 15:07
Re: REST API- Inserting a note with a value for the field note_attr
There is no note_attr in REST API
Check the documentation for available functionality in REST
https://documenter.getpostman.com/view/ ... a66112c24d
Check the documentation for available functionality in REST
https://documenter.getpostman.com/view/ ... a66112c24d
-
- Posts: 16
- Joined: 30 Jan 2020, 15:07
Re: REST API- Inserting a note with a value for the field note_attr
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
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.
The field is used internally to hold the list of user ids when sending a reminder.