Project

General

Profile

how to get a conflict when updating a stale issue

Added by Toma Zaza over 8 years ago

Hi there,

I'm updating an issue via Redmine's REST API. I wonder how to achieve the same result I get when I try to update a stale issue using the Web UI, where I get an error saying that there's a conflict.

I tried calling PUT /issues/{id}.json "last_journal_id" and "lock_version" in various places. None of them work. I mean I updated the issue, but was expecting the call to fail with 409 (conflict).

ofc I googled for a solution first and found http://stackoverflow.com/questions/30510002/using-redmine-rest-api-to-concurrently-update-issues but there's no example of a request that would result in a conflict.

Thanks for any tips.

Cheers,