Page 1 of 1

I can not update issue status from "resolved" to "closed" when requested via REST API

Posted: 16 Jan 2019, 09:11
by rud99
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!

Re: I can not update issue status from "resolved" to "closed" when requested via REST API

Posted: 16 Jan 2019, 11:03
by cas
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.

Re: I can not update issue status from "resolved" to "closed" when requested via REST API

Posted: 16 Jan 2019, 11:13
by rud99
cas wrote: 16 Jan 2019, 11:03 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.
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

Posted: 16 Jan 2019, 11:52
by atrol
Which PHP version and which Mantis version do you use?

Re: I can not update issue status from "resolved" to "closed" when requested via REST API

Posted: 16 Jan 2019, 13:18
by rud99
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.