Skip to content

Commit

Permalink
#1454 Add tasks in case template output
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 29, 2020
1 parent 5176b1f commit 834c74b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dto/src/main/scala/org/thp/thehive/dto/v1/CaseTemplate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ case class OutputCaseTemplate(
tlp: Option[Int],
pap: Option[Int],
summary: Option[String],
customFields: Set[OutputCustomFieldValue] = Set.empty
customFields: Set[OutputCustomFieldValue] = Set.empty,
tasks: Seq[OutputTask]
)

object OutputCaseTemplate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ object Conversion {
.withFieldConst(_._type, "CaseTemplate")
.withFieldComputed(_.customFields, _.customFields.map(_.toOutput).toSet)
.withFieldComputed(_.tags, _.tags.map(_.toString).toSet)
.withFieldComputed(_.tasks, _.tasks.map(_.toOutput))
.transform
)

Expand Down

0 comments on commit 834c74b

Please sign in to comment.