add support for change test result in Jira

Each test execution depend on jira id, but ZAPI operate with it's own ids, so if know jira id - you can get issue id according to zapi and create new execution for it's id. how you can add this somewhere else, as after test run you know result - if it pass/fail and change status in JIRA? 
For version providing - I guess  API should be extended in such way: search all project version and return last one created, or specify version in config