The documentation is really awful as pointed out by other people.
I was not able to find in any place how to set a field in a already created issue.
The examples to set a field either implied you're transitioning an issue or creating one.
A broader question: Is atlassian really supporting this?
I'll try another implementation in the meanwhile:
https://github.com/rcarz/jira-client