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 can I pass changelist number to ccollab admin batch xml as a parameter
I am trying to create a review in Smart bear collaborator automatically on perforce submission. For this I am using perforce triggers which calls admin batch with an XML file. I would like perforce's %changelist% value to be passed to the XML file. Here is the XML snippet for the review creation: <admin_trigger_create-review> <review-id-regex>Review:\s+(\d+)</review-id-regex> <changelist>%changelist%</changelist> </admin_trigger_create-review> Obviously the changelist variable is not substituted and I have no idea how to pass it to the XML. Note: I have a few other commands as well, so I have to use the batch XML for concurrency reasons.923Views0likes0Comments