Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

What date-format to use in issueFunction expression?

Hi

I've tried several different date-formats in the following filter with no luck.
Any advise?

issueFunction in expression("resolution = Unresolved", "today+remainingestimate > 2017-05-01")

 

Adding a custom date field is very impractical, I would have to update all potential issues with the specific date. (but it returns the expected resultset).

issueFunction in expression("resolution = Unresolved", "today+remainingestimate > myCFdate")

 br

/David Jansson

2 answers

Suggest an answer

Log in or Sign up to answer
1 vote
Jonny Carter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 26, 2017

One workaround might be to have one of your JIRA admins add a scripted field that calculates the current date plus the remaining estimate and returns a date. Then you could use dateCompare.

The scripted field would have code along the lines of

import groovy.time.TimeCategory

def today = new Date()
def remainingEstimate = issue.getEstimate()
def calculatedDate
use (TimeCategory) {
    calculatedDate = today + remainingEstimate.milliseconds
}
return calculatedDate

Then the JQL would be

issueFunction in dateCompare("resolution = Unresolved", "'Current date plus resolution scripted field' > 2017-05-01")

Just replace 'Current date plus resolution scripted field' with the actual name of your scripted field.

Make sure to use a datetime searcher and template when setting up your script field.

0 votes
JohnsonHoward
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 25, 2017

Hi David,

 

Unfortunately what you are trying to do is not really possible at the moment. 

Please refer to your Adaptavist support ticket for more information.

 

Thanks

TAGS
AUG Leaders

Atlassian Community Events