View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037284 | mantisbt | api rest | public | 2026-07-04 14:38 | 2026-07-06 02:55 |
| Reporter | malorny | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Summary | 0037284: API: target_version missing in issue response | ||||
| Description | When fetching an Issue over the API using The PATCH endpoint accepts changing "target_version", but doesn't show it in the response. | ||||
| Tags | No tags attached. | ||||
|
Sorry but I'm not able to reproduce.
Works for me, e.g. on this tracker
I tested the PATCH endpoint too (in my local dev env), and I do get the target version in the response JSON as well. |
|
|
Not on my instance. See screenshot. I'm running version 2.28.4 |
|
|
Thanks for the credentials, but I am not going to use them. I work on Mantis in my spare time and I will not spend what little I have of it to analyze your system. Thanks for your understanding. One hint for you, this tracker runs on master branch, and there's quite a few fixes and improvements to REST API pending release, so try again using a nightly build. |
|
|
Found the culprit in mc_issue_api.php: The roadmap_view_threshold was set to NOBODY on my machine. So, the bug is, that I'm allowed to change the target_version even if I'm not allowed to see it. |
|
|
I see nothing wrong with that, since roadmap_view_threshold only determines the ability to view the roadmap and the target version. Updating is controlled by roadmap_update_threshold. In mc_issue_update() function, line 1175 |
|
|
ok, you're right. Maybe you think about a warning message somewhere if a view threshold is configured higher than the corresponding update threshold. But this would be a feature request. Feel free to close this issue. |
|
|
Thanks for the feedback. |
|