Skip to content

List changes on an issue

Deprecated
GET
/repositories/{workspace}/{repo_slug}/issues/{issue_id}/changes

Returns the list of all changes that have been made to the specified issue. Changes are returned in chronological order with the oldest change first.

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.

Note that this operation is changing significantly, due to privacy changes. See the announcement for details.

Changes support filtering and sorting that can be used to search for specific changes. For instance, to see when an issue transitioned to “resolved”:

$ curl -s https://api.bitbucket.org/2.0/repositories/site/master/issues/1/changes \
   -G --data-urlencode='q=changes.state.new = "resolved"'

This resource is only available on repositories that have the issue tracker enabled.

N.B.

The changes.assignee and changes.assignee_account_id fields are not a user object. Instead, they contain the raw username and account_id of the user. This is to protect the integrity of the audit log even after a user account gets deleted.

The changes.assignee field is deprecated will disappear in the future. Use changes.assignee_account_id instead.

issue_id
required
string

The issue id

repo_slug
required
string

This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: {repository UUID}.

workspace
required
string

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: {workspace UUID}.

q
string

Query string to narrow down the response. See filtering and sorting for details.

sort
string

Name of a response property to sort results. See filtering and sorting for details.

Returns all the issue changes that were made on the specified issue.

Media type application/json
Paginated Log Entries

A paginated list of issue changes.

object
size

Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.

integer
page

Page number of the current results. This is an optional element that is not provided in all responses.

integer
>= 1
pagelen

Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.

integer
>= 1
next

Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.

string format: uri
previous

Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.

string format: uri
values
Array<object>
0
Issue Change

An issue change.

object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
issue
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
name
string
created_on
string format: date-time
user
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
issue
object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
html
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
comments
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
attachments
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
watch
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
vote
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
id
integer
repository
object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
html
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
pullrequests
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
commits
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
forks
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
watchers
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
downloads
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
clone
Array<object>
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
hooks
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
uuid

The repository’s immutable id. This can be used as a substitute for the slug segment in URLs. Doing this guarantees your URLs will survive renaming of the repository by its owner, or even transfer of the repository to a different user.

string
full_name

The concatenation of the repository owner’s username and the slugified name, e.g. “evzijst/interruptingcow”. This is the same string used in Bitbucket URLs.

string
is_private
boolean
parent
object recursive
scm
string
Allowed values: git
owner
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
name
string
description
string
created_on
string format: date-time
updated_on
string format: date-time
size
integer
language
string
has_issues

The issue tracker for this repository is enabled. Issue Tracker features are not supported for repositories in workspaces administered through admin.atlassian.com.

boolean
has_wiki

The wiki for this repository is enabled. Wiki features are not supported for repositories in workspaces administered through admin.atlassian.com.

boolean
fork_policy

Controls the rules for forking this repository.

  • allow_forks: unrestricted forking
  • no_public_forks: restrict forking to private forks (forks cannot be made public later)
  • no_forks: deny all forking
string
Allowed values: allow_forks no_public_forks no_forks
project
object
type
required
string
links
object
html
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
uuid

The project’s immutable id.

string
key

The project’s key.

string
owner
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
links
object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
html
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
members
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
projects
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
repositories
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
name

The name of the project.

string
description
string
is_private

Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories.

boolean
created_on
string format: date-time
updated_on
string format: date-time
has_publicly_visible_repos

Indicates whether the project contains publicly visible repositories. Note that private projects cannot contain public repositories.

boolean
mainbranch
object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
commits
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
html
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
name

The name of the ref.

string
target
object
type
required
string
hash
string
/[0-9a-f]{7,}?/
date
string format: date-time
author
object
type
required
string
raw

The raw author value from the repository. This may be the only value available if the author does not match a user in Bitbucket.

string
user
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
committer
object
type
required
string
raw

The raw committer value from the repository. This may be the only value available if the committer does not match a user in Bitbucket.

string
user
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
message
string
summary
object
raw

The text as it was typed by a user.

string
markup

The type of markup language the raw content is to be interpreted in.

string
Allowed values: markdown creole plaintext
html

The user’s content rendered as HTML.

string
parents
Array<object> recursive
repository
object recursive
participants
Array
0
object
type
required
string
user
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
role
string
Allowed values: PARTICIPANT REVIEWER
approved
boolean
state
string
Allowed values: approved changes_requested
participated_on

The ISO8601 timestamp of the participant’s action. For approvers, this is the time of their approval. For commenters and pull request reviewers who are not approvers, this is the time they last commented, or null if they have not commented.

string format: date-time
merge_strategies

Available merge strategies for pull requests targeting this branch.

Array<string>
Allowed values: merge_commit squash fast_forward squash_fast_forward rebase_fast_forward rebase_merge
default_merge_strategy

The default merge strategy for pull requests targeting this branch.

string
title
string
reporter
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
assignee
object
type
required
string
links
Account Links

Links related to an Account.

object
avatar
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
key
additional properties
any
created_on
string format: date-time
display_name
string
uuid
string
created_on
string format: date-time
updated_on
string format: date-time
edited_on
string format: date-time
state
string
Allowed values: submitted new open resolved on hold invalid duplicate wontfix closed
kind
string
Allowed values: bug enhancement proposal task
priority
string
Allowed values: trivial minor major critical blocker
milestone
object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
name
string
id
integer
version
object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
name
string
id
integer
component
object
type
required
string
links
object
self
Link

A link to a resource related to this object.

object
href
string format: uri
name
string
name
string
id
integer
votes
integer
content
object
raw

The text as it was typed by a user.

string
markup

The type of markup language the raw content is to be interpreted in.

string
Allowed values: markdown creole plaintext
html

The user’s content rendered as HTML.

string
changes
object
assignee
object
old
string
new
string
state
object
old
string
new
string
title
object
old
string
new
string
kind
object
old
string
new
string
milestone
object
old
string
new
string
component
object
old
string
new
string
priority
object
old
string
new
string
version
object
old
string
new
string
content
object
old
string
new
string
message
object
raw

The text as it was typed by a user.

string
markup

The type of markup language the raw content is to be interpreted in.

string
Allowed values: markdown creole plaintext
html

The user’s content rendered as HTML.

string
key
additional properties
any
Examples
Example response
{
"pagelen": 20,
"values": [
{
"changes": {
"priority": {
"new": "trivial",
"old": "major"
},
"assignee": {
"new": "",
"old": "evzijst"
},
"assignee_account_id": {
"new": "",
"old": "557058:c0b72ad0-1cb5-4018-9cdc-0cde8492c443"
},
"kind": {
"new": "enhancement",
"old": "bug"
}
},
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/dogslow/issues/1/changes/2"
},
"html": {
"href": "https://bitbucket.org/evzijst/dogslow/issues/1#comment-2"
}
},
"issue": {
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/dogslow/issues/1"
}
},
"type": "issue",
"id": 1,
"repository": {
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/dogslow"
},
"html": {
"href": "https://bitbucket.org/evzijst/dogslow"
},
"avatar": {
"href": "https://bitbucket.org/evzijst/dogslow/avatar/32/"
}
},
"type": "repository",
"name": "dogslow",
"full_name": "evzijst/dogslow",
"uuid": "{988b17c6-1a47-4e70-84ee-854d5f012bf6}"
},
"title": "Updated title"
},
"created_on": "2018-03-03T00:35:28.353630+00:00",
"user": {
"username": "evzijst",
"nickname": "evzijst",
"display_name": "evzijst",
"type": "user",
"uuid": "{aaa7972b-38af-4fb1-802d-6e3854c95778}",
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/users/evzijst"
},
"html": {
"href": "https://bitbucket.org/evzijst/"
},
"avatar": {
"href": "https://bitbucket.org/account/evzijst/avatar/32/"
}
}
},
"message": {
"raw": "Removed assignee, changed kind and priority.",
"markup": "markdown",
"html": "<p>Removed assignee, changed kind and priority.</p>",
"type": "rendered"
},
"type": "issue_change",
"id": 2
}
],
"page": 1
}

The specified repository or issue does not exist or does not have the issue tracker enabled.

Media type application/json
Error

Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.

object
type
required
string
error
object
message
required
string
detail
string
data

Optional structured data that is endpoint-specific.

object
key
additional properties
any
key
additional properties
any
Example generated
{
"type": "example",
"error": {
"message": "example",
"detail": "example",
"data": {}
}
}