Open and close issue on Jira using the REST Api