View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026121 | mantisbt | api rest | public | 2019-09-09 05:27 | 2019-12-02 17:13 |
Reporter | eaaswrm | Assigned To | dregad | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 2.22.0 | ||||
Summary | 0026121: Problem creating issues with custom fields using REST API | ||||
Description | I'm trying to create new issues using Mantis REST API but I'm getting a problem with custom fields, I'm following guidlines from Postman and sending that data in json:
But I'm getting answer back that custom field is empty: "Invalid custom field 'IP name' value.","code":11,"localized":"A necessary field \"IP name\" was empty. Please recheck your inputs." Mantis v. 2.22 but same problem was present in previous install v 2.14 EDIT [dregad] Markdown block quote | ||||
Tags | No tags attached. | ||||
It works for me. Are you really using single quotes ? If so, please try again with double quotes, as per JSON specification
|
|
Also, there seems to be a misplaced
should probably be
EDIT: And missing comma after "field": {"name": "xxx"} Make sure you use valid JSON http://json.parser.online.fr/ |
|
It looks to be a typo. I'm using Python script to generate that data for me and it uses good JSON encoding (with double quotes). This is the data that is being sent (checked with suggested JSON parser): <code> |
|
And with this, you get the same error message as previously mentioned, but for Tool Selection instead if IP name custom field ? |
|
Yes, I get the same error (IP name is no longer required). |
|
@dregad, do you have any idea what I could try next? |
|
Sorry for the delayed response.
No I don't. Especially considering that you have not provided information regarding the CF's definition. |
|
eaaswrm, You did not provide feedback; I am therefore resolving this issue as "no change required". Feel free to reopen the issue at a later time and provide the requested information. |
|
it doesnt work. Lets try something else. |
|