REST API- Inserting a note with a value for the field note_attr
Posted: 26 May 2021, 12:44
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!
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!