I figured it out
first identify the field you want to change
I used this command in cmdprompt:
curl -u username:password http://xxxxxx/rest/api/2/issue/issue-x/transitions
Then parse the returned json and look for the id of the field you want
Then use jira.transition_issue(issue, 'number of field you want')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.