Defect #9599
closedJSON REST API : How do i update 'issue status'
0%
Description
I am trying to close a ticket via the JSON REST api,
ticket['issue']['status'] shows me {u'id': 1, u'name': u'New'}
if i change this to something else the rest of the ticket updates. however the status remains the same, the user can change the status via the web ui, so this shouldn't be a permissions issue.
for example I set:
{u'id': 5, u'name': u'Closed'}
Updated by Jean-Philippe Lang about 13 years ago
- Status changed from New to Closed
- Resolution set to Invalid
You can change the status by setting status_id to the appropriate status id.
Updated by Francis West about 13 years ago
- Status changed from Closed to Reopened
sorry to reopen, but I've tried using status_id thus:
x['issue']['status_id'] = 3 or 'Closed'
do i need to delete x['issue']['status'] ? I've also tried that to no avail!
no changes occur, not errors are report, no HTTP status codes other than 200, nothing in the logs to say if any action was taken or not.
please help!
Updated by Mischa The Evil about 13 years ago
- Status changed from Reopened to Closed
Francis West wrote:
sorry to reopen, but I've tried using status_id thus:
x['issue']['status_id'] = 3 or 'Closed'
do i need to delete x['issue']['status'] ? I've also tried that to no avail!
no changes occur, not errors are report, no HTTP status codes other than 200, nothing in the logs to say if any action was taken or not.
please help!
Please move further discussion to
since it should be implemented already as JPL stated thus making it a possible syntax problem.