How can I create a new pull request with author? Edited

I'm unable to set the author for a new pull request.  For whatever reason, when I create a new PR, the author becomes whoever I've used to authenticate with (in this case the repository owner), and not the set author on the request object. 

For example, for the following request: 

{
   "title":"Auto generated Pull Request Test LPHZ0",
   "source":{
      "branch":{
         "name":"EZ-1234"
      }
   },
   "destination":{
      "branch":{
         "name":"master"
      }
   },
   "state":"OPEN",
   "author":{
      "username":"ttesterton",
      "website":"",
      "display_name":" Tony Testerton",
      "uuid":"{xxxx-xxxx-xxxx-xxxx-xxxx-xxxx}",
      "links":{

      },
      "created_on":"2016-01-14T05:27:35.146257+00:00",
      "is_staff":false,
      "location":null,
      "type":"user"
   },
   "close_source_branch":false
}

The pull request gets created, but instead of ttesterton being the author, it's the repository owner.  How can I specify the PR author for the new Pull Request via the API, version 2.0?

1 answer

0 vote

Hi Denis!

For this kind of question you'll get a better and faster answer if you post it in our Developer Community. There you'll find developers, product experts and vendors that will be able to help you with your question :)

Cheers,

Ana

Thanks, I've followed the link you provided and asked there also, however, there doesn't appear to be many topics on the subject...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,233 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you