Defect #9599
closed
JSON REST API : How do i update 'issue status'
Added by Francis West about 13 years ago.
Updated about 13 years ago.
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'}
- Status changed from New to Closed
- Resolution set to Invalid
You can change the status by setting status_id to the appropriate status id.
- 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!
- 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 How to update issue status/priority using Rest API? since it should be implemented already as JPL stated thus making it a possible syntax problem.
Also available in: Atom
PDF