POST a new comment on a changeset in a line of a new file (BB-14707)

Issue #11925 open
Pedro Rijo
created an issue

Using the bitbucket API ( I'm trying to post a comment on a changeset of a full new file. I tried to comment on several lines (-1, 0, 1, 10, ...) and the comment is done but it is not possible to see it anywhere. I can only comment in the file, not in a line. Example:

Screen Shot 2015-10-08 at 18.41.34.png

In a modified file I can comment in the new lines as in

Screen Shot 2015-10-08 at 18.40.21.png

Comments (10)

  1. Pedro Rijo reporter

    Edit: I was using only the parameter "line_from". I've found out that if I use the parameter "line_to" instead it works. Don't know why, and the documentation doesn't provide any hint.

  2. Gary Sackett staff

    Hi Pedro, Commenting on a "green line" requires "line_to", a red line "line_from" and a white line should take either. Can you confirm your API call here, just to make sure it was using the proper parameter?

    Cheers, Gary

  3. Pedro Rijo reporter


    Is that information available anywhere? (Commenting on a "green line" requires "line_to", a red line "line_from" and a white line should take either.)

  4. Michael Rüegg


    I can confirm that "green" lines require line_to, but for context lines ("white lines") only line_from worked for me. With line_to Bitbucket created a comment but it is not shown in the diff (only in the activity tab) due to "commented on a file but no context is available".

    Is this a known issue?

  5. Jacob Martine

    Every Moment technology has become a new invention, it has been growing day by day, it has been for us to relieve our lifestyle, but if they're having some issue then need support. We all know about Telstra which has been called as Bigpond, It is the basically Australian Mail provider Service. But in case our have some issue overshare so we need support as quickly as possible then we Need to Follow Bigpond Support it Helps. And of course, they are very much supportive. I think Bigpond Support will help us with the Matter.

    Bigpond Support.jpg

  6. Log in to comment