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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rud99
Posts: 6
Joined: 31 Jul 2018, 06:08

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

Post 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!
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

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

Post 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.
rud99
Posts: 6
Joined: 31 Jul 2018, 06:08

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

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Which PHP version and which Mantis version do you use?
Please use Search before posting and read the Manual
rud99
Posts: 6
Joined: 31 Jul 2018, 06:08

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

Post 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.
Post Reply