Yep, this is what you need. You'll need your automation user to have the "can_submit_as" permission enabled as well.
Christian -- Christian Hammond President/CEO of Beanbag <https://www.beanbaginc.com/> Makers of Review Board <https://www.reviewboard.org/> On Tue, Mar 21, 2017 at 1:35 PM, Erik Johansson <e...@ejohansson.se> wrote: > Hi, > > Without knowing much about this I would guess you need to set submit_as > when creating the review request. See https://www.reviewboard.org/ > docs/manual/2.5/webapi/2.0/resources/review-request-list/#POST > > // Erik > > On 21 March 2017 at 10:21, mav14117 <ptorr...@gmail.com> wrote: > >> Hi there, >> >> I am using the Python API to create a new review. >> >> My main goal is to create a review with an automation user, eg, jenkins, >> but make the submitter and the reviewers real users. >> >> I was following the tutorial and I thought I could do something like this: >> >> # Modify the review >> draft = review_request.get_draft() >> draft = draft.update( >> summary='API tutorial request', >> description='This request was created in the API tutorial.', >> submitter='real_user1', >> target_people='real_user2') >> >> draft.update(public=True) >> >> However this seems not to have any effect, since the reviews are created >> with my "jenkins" user instead. >> >> I tried searching for different terms, including "python submitter" and >> "python api submitter" but this did not throw back any relevant threads. >> >> Can anyone offer some directions on how could I achieve this? >> >> Many thanks! >> >> >> -- >> Supercharge your Review Board with Power Pack: >> https://www.reviewboard.org/powerpack/ >> Want us to host Review Board for you? Check out RBCommons: >> https://rbcommons.com/ >> Happy user? Let us know! https://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to reviewboard+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Erik Johansson > Home Page: http://ejohansson.se/ > PGP Key: http://ejohansson.se/erik.asc > > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.