I created a new calculated number field called 'Times Rescheduled'. This basically checks the issue history to see the number of times the due date field has changed. Once this field was created I did a full reindex so all my issues that this field is available has a value.
The field works great and I can do a JQL search on it. However, when I view it on the issue navigator it randomly shows up and disappears on different refreshes. Is this the expected behaviour and if so can you explain why it's like this?
When importing in your formula Java packages (e.g. com.atlassian.jira.issue.changehistory) that are not actively used by the plugin code itself, package resolution sometimes fails because the class cannot be found in the OSGi ClassLoader cache.
The solution is to Dynamically Import "*" (DynamicImport-Package:). This is not ideal but since actual packages used by formulas cannot be anticipated, there is no other option. However, this doesn't work well with JIRA < 6.3. Therefore, we should instead import only a few selected packages: com.atlassian.jira.;org.apache.commons.;org.joda.