Forum Discussion
Six months later and no answer?
- Igor_Klimov3 years agoSmartBear Alumni (Retired)
Hello,
Thanks for contacting us.
You can use the following API call to set the participant custom field value for the user:
[{"command":"SessionService.authenticate","args":{"login":"reviewer","ticket":"731ec82736efff4ba6ef5aeb123ea60f"}},{"command":"ReviewService.editReview","args":{"participantCustomFields":[{"name":"Discipline","value":["Management"]}],"reviewId":18}}].
In this example, I'm setting the Discipline participant custom field to Management for the user whose login name is reviewer in review 18.
Note, that you need to be logged in under the user to be able to modify their participant custom field value.
For more information, please refer to this documentation section: https://support.smartbear.com/collaborator/docs/custom-integrations/json-api/index.html
and the ReviewService interface at <your_server_address>/javadoc/jsonapi/.
- EJ2563 years agoOccasional Contributor
"Note, that you need to be logged in under the user to be able to modify their participant custom field value."
So are you not able to automate each participants Discipline when adding them to a review? You can only modify the logged in user? Is there not a way to pass the user ID as an argument whose Discipline field you want to modify? Why would it default the update to the logged in user?
- Igor_Klimov3 years agoSmartBear Alumni (Retired)
I'm afraid the JSON API functionality only allows to set participants custom field for logged-in users only.
Unfortunately, the editReview method in the ReviewService interface doesn't imply passing the user ID as a parameter of the method.
However, I think that's a good idea that may be useful for other users. So, you can submit a feature request in the correspondent community thread: https://community.smartbear.com/t5/Collaborator-Feature-Requests/idb-p/CollaboratorFeatureRequests . A lot of "kudos" under it should help our Product Management team to prioritize it.
Related Content
- 2 years ago
- 2 months ago
- 2 months ago
Recent Discussions
- 2 months ago