I have a listener that adds a label when the version of a ticket is changed. This works without any problems but when i want to search issues that have the label, i get no results.
Do i need another step after the label has been added to update the ticket somehow? When reindexing the project, I get the results i want but i shouldn't reindex the whole project each time a fixversion is updated.
if (lastVersion != newVersion) {
def labels = labelManager.getLabels(issue.id).collect{it.getLabel()}
labels += 'Updated'
labelManager.setLabels(user,issue.id,labels.toSet(),false,false)
}