Returns the history of the specified item.
Use the operation to get the history of the item specified by its ID it has in the specified project.
Basic authentication using a user’s login and password. See Authentication for details.
The authenticating user must have the Read privilege for the entity (defects, tests and so on).
To get the item history, send a GET request to the following URL:
Offset : integer
The number of audits to skip before counting the returned audits.
Limit : integer
The maximum number of audits to return.
ProjectId : integer, required
The ID of the project the item belongs to.
EntityCode : string, required
The type of the item whose history you want to get. Possible values:
- Bugs (defects)
- FunctionalSpecs (requirements)
EntityId : integer, required
The ID of the item whose history you want to get.
Filter : string
The filter expression to apply to the list of audits.
A sample request:
GET http://yourserver.com/rest-api/service/api/v2/projects/11873/tests/2 HTTP/1.1
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u email@example.com:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v2/projects/11873/tests/2
On success,the operation responds with HTTP status code 200 and returns a JSON object with information on the item history.
A sample response:
HTTP/1.1 200 OK
"title": "Updated Description",
"update_user": "Smith, John"
"title": "Updated Version",
"update_user": "Smith, John",
Metadata about the audit list.
Pagination information on the result set. (See Paging Through Results Using Offset and Limit.)
The number of returned items.
The offset of the first item requested.
The maximum number of items requested.
The total number of items.
The authenticating user’s rights for the returned items.
- 0 - None
- 1 - Read
- 2 - Update
- 3 - Read and update
- 4 - Delete
- 5 - Read and delete
- 7 - Full access
An array of audits.
The name of the item.
The old value of the item.
The new value of the item.
The ID of the user who last updated the item.
The date and time when the record about the item was created.
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
If the project with the specified ProjectId does not exist or the authenticating user does not have rights to access the project, the operation returns the
Access is denied error.