It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Highlight Overdue Issues on a jira dashboard using the filter issue gadget?

Warren McInnes Jan 15, 2013

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?

4 answers

1 accepted

0 votes
Answer accepted
Warren McInnes May 29, 2014

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

}

0 votes
Warren McInnes Jul 21, 2013

No one cares to comment?

0 votes
Onkar Ahire Jul 21, 2013

hi Warren,

Create a filter

Try

status = Open and status was Open BEFORE startOfDay("-2d")

or

duedate < now()

Regards

Onkar Ahire

Warren McInnes Jul 21, 2013

What I'm looking for is the colour feature, Where the more overdue it is the darker the colour gets... Is this posible?

0 votes

Nowadays I'd recommend using a JIRA Agile board and different card colors using JQL that finds overdue issues

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

167 views 21 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you