TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.28k stars 606 forks source link

[BUG] computed.handlingDuration filter doesn't work on open cases #2379

Open FlorentinC opened 2 years ago

FlorentinC commented 2 years ago

Request Type

Bug

Work Environment

Question | Answer -- | -- Virtualized Env. | True TheHive version / git hash | 4.1.17-1 Database | Cassandra Index type | Elasticsearch Attachments storage | NTFS Browser type & version | Not applicable

Problem Description

The case filters "computed.handlingDuration" don't work on open cases.

To-om commented 2 years ago

handlingDuration is a computed field that returns the elapsed time between the case creation and the close date. If the case is open, the handlingDuration has no sense.

priamai commented 2 years ago

True not strictly a bug BUT would be nice to compute the current duration of a case which is the current sum of all tasks that have been started. Just a suggestion.