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:
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 ?
Hi @Nilufar It's definitely an indexing issue. Include below code in Script.
def indexManager = ComponentAccessor.getComponent(IssueIndexingService.class)
Are you using post function to update Affect version field value ?
Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events