Hi, when I tried to create a Pull Request in my destination server , I got a 400 error that says author is not expected.
When I remove the author key, it successfully executed with a 201 response code. when I include the author key in my response body it always throw a 400 error. Please review the given response body in the documentation. It has a bug.
Please find the given author section from the screenshot and validate it.
Documentation Link -
https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8287391664
Hi Sayantan,
The response body is what the server responds with. You need to look at the sample listed under Example request representations.
Cheers,
Christian
Premier Support Engineer
Atlassian
Hi @Christian Glockner , I have seen the sample response body.
But one thing I would like to address, I have getting the server response and modifying its key values in order to migrate the Pull Requests from Source server to destination server. And strangely, it worked fine and the pull request is successfully migrated.
But the only problem is whoever is doing the migration , in the destination server the name of the pull request creator is replaced by the migrator name.
That's why , when I am trying to pass the author key, it's says error. Then it means there's no way I can properly migrate a pull request of a repository??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.