Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
${set ("label", 'Unknown')}
${set ("label", entity.projectedFinishCalendar.time.time <= entity.baselineFinish.time && entity.percentComplete!=100 ? 'On Time' : label)}
${set ("label", entity.percentComplete!=100 && Date.now().time > entity.baselineFinish.time ? 'Overdue' : label)}
${set ("label", entity.projectedFinishCalendar.time.time > entity.baselineFinish.time && Date.now().time < entity.baselineFinish.time ? 'At Risk' : label)}

${set ("color", 'Neutral')}
${ set ("color", label eq 'On Time' ? '#008000' : color)}
${ set ("color", label eq 'At Risk' ? '#FFA500' : color)}
${ set ("color", label eq 'Overdue' ? '#FF0000' : color)}

<span class="label label-outline" style="display:inline-block;width:10px;height:10px;background-color:border-color: ${color}; color: ${color} ;border-radius:5px;"></span>;$>${label}</span>