Refactors the jira command