Add Notes to Defect

Applies to QAComplete 14.3, last modified on February 19, 2024

To add a note (comment) to a defect in your project, you call the …/project/{ProjectId}/Bugs/{EntityId}/notes (POST) method. The EntityId parameter specifies the ID of the item to which you want to add a note.

To add a note to another item (to a test or requirement), replace the Bugs entity code with the needed entity code (Tests or Requirements respectively).

Request

curl -u [email protected]:p@ssword -X POST -d {"Description": "A note."} -H "Content-Type: application/json" -H "Accept: application/json" http://yourserver.com/rest-api/service/api/v1/projects/11873/Bugs/12/notes

The data you pass to the server specifies the note’s contents.

Response

The server will return information on the added note:

{
  "id": "1",
  "date_created": "2015-09-08T01:20:31.4970000",
  "date_updated": "2015-09-08T01:20:31.4970000",
  "description": "A note.",
  "entity_code": "Bugs",
  "fk_id": 12,
  "original_id": 0,
  "notes_type_code": "Notes",
  "seq": 1,
  "update_user_id": 25264,
  "user_name": "Smith, John"
}

See Also

QAComplete REST API
/projects/{ProjectId}/{EntityCode}/{EntityId}/notes (POST)

Highlight search results