def create_version(jira_host, username, password, project_key, version_name): """ Creates new version. jira_host -- host address of the JIRA instance to connect to. username -- JIRA username with administration permissions. password -- JIRA user password. project_key -- project to which version should be added. version_name -- name of the new version. """ project = jira_helper.get_project(jira_host, project_key) body = json.dumps({'name': version_name, 'projectId': project['id']}) jira_helper.create_version(jira_host, username, password, body)