creyes17
9 years agoNew Contributor
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,
~Chris