The TimeInStatusCFType values are only stored in the database when an issue is resolved. If the issue is reopened, this value is immediately removed from the database. While this works fine for the database, the index seems to think that the custom field still has a value. This can lead in inaccurate graphs.
There is a logic error in TimeInStatusCFType.getValueFromIssue. The code:
It clears the value from the database but still returns the old value which is subsequently indexed.
Description
The TimeInStatusCFType values are only stored in the database when an issue is resolved. If the issue is reopened, this value is immediately removed from the database. While this works fine for the database, the index seems to think that the custom field still has a value. This can lead in inaccurate graphs.
There is a logic error in TimeInStatusCFType.getValueFromIssue. The code: