package Ġde . p ba u ero ch se . work log viewer . datasource . api . domain Ċ Ċ import Ġcom . fasterxml . jackson . annotation . JsonInclude Ċ import Ġcom . fasterxml . jackson . annotation . JsonProperty Ċ import Ġjava . time . LocalDate Ċ import Ġjava . time . Zone Id Ċ Ċ @ JsonInclude ( JsonInclude . Include . NON _ NULL ) Ċ class ĠCreate WorkItem Request ( ĊĠĠĠ Ġwork Date : ĠLocalDate , ĊĠĠĠ Ġduration In Minutes : ĠLong , ĊĠĠĠ Ġ@ JsonProperty (" author ") Ġval Ġauthor : ĠUser , ĊĠĠĠ Ġ@ JsonProperty (" text ") Ġval Ġtext : ĠString ?, ĊĠĠĠ Ġ@ JsonProperty (" type ") Ġval Ġtype : ĠYou Track Work ItemType ? Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ JsonProperty (" date ") ĊĠĠĠ Ġval Ġdate : ĠLong Ġ= Ġwork Date ĊĠĠĠĠĠĠĠ Ġ. at Start OfDay ( Zone Id . of (" UTC ")) ĊĠĠĠĠĠĠĠ Ġ. to Instant () ĊĠĠĠĠĠĠĠ Ġ. to Epoch Milli () ĊĊĠĠĠ Ġ@ JsonProperty (" duration ") ĊĠĠĠ Ġval Ġduration : ĠDuration Value Ġ= ĠDuration Value ( duration In Minutes , Ġ"${ duration In Minutes } m ") Ċ }