This is driving me crazy. I have created a review programatically using the REST API. How I just want to add the files in a single change list as review items.
Do I need to add all the files individually?
Do I need to specify the previous revision?
Do I need the 40-char or the shorter 12-char changelist ID for mercurial?
Or do I actually need the csid as specificed in the docs, eg 0:25bc828a0cb3 ?
If I try this
http.request(Method.POST, ContentType.XML) {
uri.path = "/fisheye/rest-service/reviews-v1/$permaId/reviewitems"
requestContentType = ContentType.XML
body = {
reviewItem {
fromPath ('/foo.c')
toPath ('/foo.c')
repositoryName (pkey)
fromRevision ('0:48ed3a16e563')
toRevision ( '1:ce2c82c45188')
}
}
}
I get: Can't create an frx from a null cruciblerevision
Same without the initial rev ID.
I can accomplish more or less what I want with http://host/fisheye/cru/create?csid=25bc828a0cb3&repo=HJK&projectName=CR-HJK but I want to do it via REST.
Community moderators have prevented the ability to post new answers.
you can POST to the url /rest-service/reviews-v1/{review-perma-id}/addChangeset with the following xml
<AddChangeset> <repository>repositoryName</repository> <Changesets> <repository>repositoryName</repository> <ChangesetData> <id>dac7138227955ed28220d7dd992dc16e393917cc</id> </ChangesetData> <ChangesetData> <id>dac7138227955ed28220d7dd992dc16e393917cc</id> </ChangesetData> <ChangesetData> <id>dac7138227955ed28220d7dd992dc16e393917cc</id> </ChangesetData> </Changesets> </AddChangeset>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.