Hi, I saw a post
http://blogs.onresolve.com/2009/11/highlight-overdue-issues/
That interested me, but seems outdated now?
We are currently using JIRA 5.2.1 and would like to know if anyone has had success with add this cool feature?
And how would i go about it?
Community moderators have prevented the ability to post new answers.
import com.atlassian.jira.util.I18nHelper
import com.atlassian.jira.web.bean.I18nBean
import com.atlassian.jira.web.util.OutlookDate
def outlookDateManager = componentManager.outlookDateManager
def user = componentManager.jiraAuthenticationContext.getLoggedInUser()
I18nHelper i18nBean = new I18nBean(user)
OutlookDate outlookDate = outlookDateManager.getOutlookDate(i18nBean.getLocale())
def dueDate = issue.getDueDate()
def now = new Date()
if (dueDate) {
def dueDateText = outlookDate.formatDatePicker(dueDate)
if (now > dueDate) {
return "<div style='color:red;'><b>" + dueDateText + "</b></div>"
} else {
return "<div style='color:green;'>" + dueDateText + "</div>"
}
} else {
return null
}
Nowadays I'd recommend using a JIRA Agile board and different card colors using JQL that finds overdue issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Warren,
Create a filter
Try
status = Open and status was Open BEFORE startOfDay("-2d")
or
duedate < now()
Regards
Onkar Ahire
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I'm looking for is the colour feature, Where the more overdue it is the darker the colour gets... Is this posible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No one cares to comment?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.