Skip to content

Commit

Permalink
#1946 Add task status in describe API
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 10, 2021
1 parent 9b29358 commit 50386b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ class DescribeCtrl @Inject() (
case ("case", "resolutionStatus") => Some(Seq(resolutionStatus))
case ("dashboard", "status") =>
Some(Seq(PropertyDescription("status", "enumeration", Seq(JsString("Shared"), JsString("Private"), JsString("Deleted")))))
case ("task", "status") =>
Some(
Seq(
PropertyDescription("status", "enumeration", Seq(JsString("Waiting"), JsString("InProgress"), JsString("Completed"), JsString("Cancel")))
)
)
case (_, "tlp") =>
Some(
Seq(PropertyDescription("tlp", "number", Seq(JsNumber(0), JsNumber(1), JsNumber(2), JsNumber(3)), Seq("white", "green", "amber", "red")))
Expand Down

0 comments on commit 50386b2

Please sign in to comment.