How to highlight overdue issues in View Screen ?
Velocity processed Message Custom Field (for view), 11100 - to hide name of your customfield:
<script type="text/javascript"> jQuery(document).ready(function () { jQuery('#customfield_11100-val').parent().hide(); var content = jQuery("#due-date").html(); var fullDate = new Date(); var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1); var currentDate = fullDate.getFullYear() + "-" + twoDigitMonth + "-" + fullDate.getDate(); if (new Date(content) <= new Date(currentDate)) { jQuery("#due-date").css('background-color', 'red'); } }); </script>
It's for date format like "2012-02-17"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.