Re-Index after changing MetaDataValue
We are using MetaData-Plugin for project priorities. this field is shown in every issue by custom field. with this we can create a worklist for every user by following example:
status != Closed and assignee = currentUser() ORDER BY "Priority (Project)"
if we change the value of the metadata-field it has no affect to the "order by". not until after re-indexing it the correct order is shown.
so we could re-index every night or so - is there a smarter way?
the answer is no and yes.
No, regarding to the current implementation of the plugin
Yes, if you implement your own jql function (https://developer.atlassian.com/display/JIRADEV/JQL+Function+Plugin+Module ) which uses the data of the metadata plugin (sample: https://bitbucket.org/aspall/jira-metadata-addonsample/src).