On a JIRA ticket test executions has a field for 'Defects'. I have automated tests which fail for known bugs so wish to update those executions as failed using zapi automatically and also add the defect ticket number.
One logical approach would be to reserve @testcaseid for the JIRA ID of the test case and use @issue to tag bugs related to that test case. This is how the two tags are intended, allure use a 'bug' icon against any IDs added with the @issue tag.
Currently you cannot add an @issue tag with an ID which does not match the @testcaseid. (see method getIssueOrTestCaseIdValue) Can this restriction be lifted ? I understand some projects may have treated Issue/TestCaseId as the same thing so there may be some backwards incompatability questions...