Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing a case with an open task does not dismiss task in "My tasks" #269

Closed
BrevilleBro opened this issue Jul 25, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@BrevilleBro
Copy link

Closing a case with an open task does not dismiss task in "My tasks"

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) 10
TheHive version / git hash 2.12
Package Type From source

Problem Description

Closing an open case with an open task should close the task. However, if the task has been assigned, the task is not dismissed from My Tasks. See below where there is only one open task, however, there are 2 for the My Tasks bade.

Steps to Reproduce

  1. Open a case
  2. Assign a task to yourself
  3. Close the case (which should close the task)
  4. Observe the number of "My Tasks" in the header. Despite case and task being closed, the My Tasks number in the header has not changed.

Complementary information

image

@saadkadhi saadkadhi added the bug label Jul 26, 2017
@saadkadhi saadkadhi added this to the 2.12.1 milestone Jul 26, 2017
@saadkadhi
Copy link
Contributor

Thanks @BrevilleBro we are going to confirm this behavior and if so correct it in 2.12.1.

@To-om
Copy link
Contributor

To-om commented Jul 27, 2017

Tasks are closed but "My tasks" indicator is not updated.
@nadouani This value must be reloaded when a case is closed.

@To-om To-om assigned nadouani and unassigned To-om Jul 27, 2017
@nadouani nadouani changed the title [Bug] Closing a case with an open task does not dismiss task in "My tasks" Closing a case with an open task does not dismiss task in "My tasks" Jul 27, 2017
@nadouani
Copy link
Contributor

This issue is a bit tricky. In fact, the "My Task" badge listens to any action made on tasks, and returned by the action stream. But when closing a case with an open task, the action stream will notify for a case update (with a sub notification of case update).

We need to refactor the action stream service to allow listening to "sub-events"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants