Greetings to all!
I can not update issue status from "resolved" to "closed" when requested via REST API.
With this request, I get 500 Internal Server Error.
But for example, I can change the status of the request from "feedback"(for example) to "assigned" without problems.
Maybe there are some rules for changing statuses. But I didn't find anything in the documentation.
Thank you!
I can not update issue status from "resolved" to "closed" when requested via REST API
Moderators: Developer, Contributor
Re: I can not update issue status from "resolved" to "closed" when requested via REST API
Can you do this using mantis manually (without using REST)?
If not, review the workflow settings and ensure it is working manually.
Then test the REST Api again.
If not, review the workflow settings and ensure it is working manually.
Then test the REST Api again.
Re: I can not update issue status from "resolved" to "closed" when requested via REST API
Yes, of course I can close the task from the Mantis interface
I can do this by clicking on the "Close" button
https://yadi.sk/i/5x9HFJKq35wINw
Re: I can not update issue status from "resolved" to "closed" when requested via REST API
Thanks to all!
Problem solved!
The problem was in the settings of Mantis.
The "developer" user did not have rights to change tasks marked "read-only".
It turned out, tasks with status "resolved" accept "read-only" property.
I changed the settings - gave the "developer" the right to make changes to these tasks.
https://yadi.sk/i/d5ShXNkAWGDoOg
Now everything works as it should.
It is strange that the Mantis API did not throw me any concrete exception.
Problem solved!
The problem was in the settings of Mantis.
The "developer" user did not have rights to change tasks marked "read-only".
It turned out, tasks with status "resolved" accept "read-only" property.
I changed the settings - gave the "developer" the right to make changes to these tasks.
https://yadi.sk/i/d5ShXNkAWGDoOg
Now everything works as it should.
It is strange that the Mantis API did not throw me any concrete exception.