Hello,
on a customers system our plugin (version 0.5 to 1.1.1) and jira (?? to 7.5.0) were upgraded.
Since then the plugin started throwing exceptions when we access a Active Objects table like this:
IssueShare[] foundResult = this.activeObjects.find(IssueShare.class, Query.select()
.alias(IssueShare.class, "issueShare")
.where("issueShare.ISSUE_ID = ?", issue.getId())
.order("issueShare.ID DESC")
);
The error message is
java.sql.SQLSyntaxErrorException: ORA-00904: "issueShare"."ID": invalid identifier
It looks to me like the alias is not resolved when the sql is built, but why?
The same piece of code worked on the old system before the update and on other systems with the same Plugin Version that was installed during the upgrade.
Two fields were added to the IssueShare table between version 0.5 and 1.1.1, thats everything that has changed.
Thanks in Advance!
Jens