Accessing internalCustomFields for Triggers in Collaborator
Hello world, I can use the http://collaborator.server/services/json/v1 API with the following JSON body to get data about a review. [ { "command" : "ReviewService.findReviewById", "args" : { "reviewId" : "42" } }] Specifically, it includes the following internalCustomFields key: "internalCustomFields" : [ { "name" : "JiraIssueId", "value" : [ "10600" ] }, { "name" : "ExternalTaskId", "value" : [ "" ] } ] I would like to use this JiraIssueId field for a review as an argument to one of the configurable Triggers (say Review Phase Changed for example). Does anyone know how I would access this internal field? I know I can use ${review.custom.foo} for visible custom fields that I create, but the internal custom fields are not documented in the http://collaborator.server/manual/index.html?admin_var_subst.html documentation. I've tried ${review.internal.JiraIssueId}, ${review.internalCustomFields.JiraIssueId}, and ${review.custom.JiraIssueId} but none of them work (giving me the following error) Error: Invalid input: Parameters: ${review.internalCustom.JiraIssueId} is not a valid substitution keyword Thanks for any help! Best, ~Chris2.1KViews0likes1CommentHow to access review files vai JSON or the CLI Client
I have a case where I need to run a 3-rd party tool in order to provide a textual diff of some binary files. Files are stored in Bitbucket and a Collaborator review is created when a pull request is made. I'd like to insert the textual diff as a file into the peer review, triggered by the Added File Trigger. In that trigger, I'd need to get all the files that were added, identify which ones were the custom binary files and then download the last two versions and send it to the 3-rd party diff tool. The result of that diff will be added as a new file into the reivew. I will potentially need to scan old reviews or reviews where the Added File Trigger failed to add the diff, and so a JSON or cli client solution would be ideal, rather than just relying upon the Added File Trigger variable substitutions. I've been unable to identify any way of getting a list of files via JSON or the CLI client, nor any JSON or CLI client commands to retrive files. Does anybody have any suggestions on how to accomplish this? Theoretically, if I had enough information, I could go to git and collect data from it, however, the files already exist on the Collaborator server, and having to download the git repository for every changeset / Added File Trigger seems excessive. Thank you1.3KViews0likes0CommentsPerforce ensure review completed
I seem to be having some trouble getting a script to ensure a review was completed to work. I don’t seem to get any kind of status from ccollab.exe. I used this command: C:\CollaboratorClient\ccollab.exe --url http://someurl:8080/ --scm Perforce --p4port {Perforceserver} --p4client CollabTrigger --p4user {p4user ID} --p4passwd {password} admin trigger ensure-reviewed 175817 The status always seems to be empty when going through the perforce trigger and I can submit anything. If I try the above command manually I get: ERROR: SCM system communication problem: This trigger must be configured as change-content. Contact your Perforce administrator to perform the change. I have the Perforce trigger as follows: p4collab change-content //depot/P4validation/... "perl %//Scripts/p4_collab.pl% %serverhost% %changelist% %client%" I’ve tried to find the renumbering script that is linked on this page to see if that is my problem. https://support.smartbear.com/collaborator/docs/source-control/perforce.html Perforce version 2015.1 Collab version 11.4 I'm probably missing something easy so any help is appreciated. ~jeff1.2KViews0likes1CommentHow to automatic raise review from SVN check in?
I am using SVN check-in for my project. Is there any scope in Collaborator "Collaborator Enterprise 11.2.11200 ©2005-2017 SmartBear Software, Inc. Version 11.2.11200.355" to automatically raisereviews after SVN check-in. Thanks. Regards Prasanna1.1KViews0likes0Commentscreate-review post commit hook - password management and participants
Hello Is there any tutorial on how to get this working in a production environment? Especially useful would be some hints on how: 1. the hook should manage the required passwords ( ccollab-admin-trigger-create-review) (we use LDAP). 2.we can control the participants of the review (ie. like a per-user or per-source branch template?I imagine this could be done with some "custom scripting" but since it's probably a very popularrequest is there some built-in support or best practice?)997Views0likes1CommentHow to get Azure Boards work item info for recent GitHub PRs in a given repo?
have Git repos in GitHub and work items in Azure DevOps (Azure Boards). We are using the "Azure Boards" GitHub app, and thus when we addto a PR comment, it links to the right work item in Azure DevOps? We would like to create a list of recent GitHub pull requests that show the Azure Boards work item that is associatedand its parent work item. We could do this when our PRs were in Azure DevOps Git, but it seems tough to do so with PRs ion GitHub.585Views0likes0Comments