Received many complaints regarding changes to issues statuses are not reflected immediately in filters after they are changed in issues. For example someone closes a resolved issue but that issue still shows amongest the resolved ones in the filter that grabs the resolved ones. This gets fixed once I kick a reindexing of the system.
Question: is this normal? Is there some tweaking i need to do to indexing to get it to kick on every change? Is DB corrupt?
If you're changing issues from the issue navigator results, then no, this is down to caching. A user runs a filter, then jumps out to change stuff, and comes back to it. JIRA has no way of knowing if you've changed something that might affect the filter, it's expecting the user to re-run it if they think the results should be updated. It's not dynamic, it's based on a cache.
Note, that only applies to the current cached data set. A new run of the filter (or any other) will be correct because they re-read all the data. You should test that this is the case - if it's not working that way, then yes, you have an indexing problem.
Nic, While I am waiting on the complaint submitter to respond with whether they changed it from filter or not, let me ask you this (coz I am highly doubting something is not correct with our index):
I have developed a tool using scriptrunner that spawns a dialog (using the web fragments) from which user can click on specific criteria (eg select some custom fields of interest for example) and then that dialog goes back to a Rest Endpoint that looks up when last time these customfields were updated and calculates since how many days they have not been updated, then that rest endpoint --for each customefield-- updates another customfield with these values of days (# days since last update) and then creates a filter of those issues sorted by these days. For example (issue that has not been transitioned/changed status for a year will show on top with customfield 'days since last transition' with value of 365). Now sometimes the generated filter retrieves NO issues (despite the # of days has been calculated and saved in the custom field). I kick reindex and refresh the filter and then issues show with their values.
my Question is: Should I expect this to run correctly and everytime a value is changed in an issues and that issue is queried, should it show immediately? IOW, does these new values in customefields (#days) get indexed immediately or should I expect a lag.
How does the index work?
Sorry for lengthy description and thank you
Are you using any kind of post function to set values? If so you probably need to reindex in the post function as well. I have seen this when i incorrectly do my post function and while it saves my updates, the normal reindex call indexes only the values updated by the transition and not the ones updated by my post function.
defining my issue in the post function to this seems to fix this.
MutableIssue issue = (MutableIssue) getIssue(transientVars);
if all else fails, reindex the issue at the end of your post function.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs