Hi,
If I set Affects versions using edit screen." Project ="XXX" and affectedVersion is not EMPTY " works fine and returns the issue.
But If I used scriptrunner code:
issue.setAffectedVersions(affectedVersion)
issueManager.updateIssue(user, issue, EventDispatchOption.DO_NOT_DISPATCH, false)
to set Affected version, the code works fine and I can see the added Affects versions in view screen. But " Project ="XXX" and affectedVersion is not EMPTY " does not return the issue.
Does someone knows what is the problem ?