DraftNotes
Retrieve draft notes for merge requests with their content and position information.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Draft note ID | |
| AuthorId | String | True |
Author user ID | |
| MergeRequestId | String | True |
Merge request ID | |
| Note | String | False |
Draft note content | |
| ResolveDiscussion | Boolean | False |
Whether to resolve discussion | |
| DiscussionId | String | True |
Discussion ID if replying | |
| CommitId | String | False |
Associated commit SHA | |
| LineCode | String | True |
Line code for diff position | |
| Position | String | True |
Position object for diff notes | |
| PositionBaseSha | String | True |
Base commit SHA in source branch | |
| PositionStartSha | String | True |
SHA referencing commit in target branch | |
| PositionHeadSha | String | True |
SHA referencing HEAD of merge request | |
| PositionOldPath | String | True |
File path before change | |
| PositionNewPath | String | True |
File path after change | |
| PositionPositionType | String | True |
Position type (text, image, file) | |
| PositionOldLine | Integer | True |
Line number before change | |
| PositionNewLine | Integer | True |
Line number after change | |
| PositionLineRange | String | True |
Line range for multi-line diff notes | |
| ProjectId | String | False |
Project ID or URL-encoded path | |
| MergeRequestIid | Integer | False |
Merge request internal ID |