v2

Swagger 2.02026-08-01331211921.0 KB
Issue tracker

Update an issue

Modifies the issue.

$ curl https://api.bitbucket.org/2.0/repostories/evzijst/dogslow/issues/123 \
  -u evzijst -s -X PUT -H 'Content-Type: application/json' \
  -d '{
  "title": "Updated title",
  "assignee": {
    "account_id": "5d5355e8c6b9320d9ea5b28d"
  },
  "priority": "minor",
  "version": {
    "name": "1.0"
  },
  "component": null
}'

This example changes the title, assignee, priority and the version. It also removes the value of the component from the issue by setting the field to null. Any field not present keeps its existing value.

Each time an issue is edited in the UI or through the API, an immutable change record is created under the /issues/123/changes endpoint. It also has a comment associated with the change.

put/repositories/{workspace}/{repo_slug}/issues/{issue_id}

Response

The updated issue object.

typestring required
idinteger
titlestring
created_onstring date-time
updated_onstring date-time
edited_onstring date-time
state'submitted' | 'new' | 'open' | 'resolved' | 'on hold' | 'invalid' | 'duplicate' | 'wontfix' | 'closed'
kind'bug' | 'enhancement' | 'proposal' | 'task'
priority'trivial' | 'minor' | 'major' | 'critical' | 'blocker'
votesinteger