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

Query for Epics delivered within a period

Hello, I get an error message when I run this query to find out how many epics weee delivered 30 days before or after it a date but get an error message and it doesn’t run. What am I doing wrong? 
Thanks 

Team = Atlas AND issuetype =
Epic AND status = Done AND
resolved >= startOfDay(-30d) AND resolved <= startOfDay(+ 30d)

1 answer

1 accepted

1 vote
Answer accepted
Laurie Sciutti
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.
Nov 09, 2023

Hi @Mister Femi ~ what is the error message?

@Laurie Sciutti Here is the error message: Error in the JQL Query. The character ‘+’ is a reserved JQL character. You must enclose it in a string or use the escape ‘\u002b’ instead.

Laurie Sciutti
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.
Nov 09, 2023

ah.  @Mister Femi ~ Firstly, you can't have anything resolved 30 days in the future.....

Laurie Sciutti
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.
Nov 09, 2023

@Mister Femi ~ you could try using hours, but be sure to include it in quotes. 

 

resolved <= startOfDay("+8h")

@Laurie Sciutti  Thanks, I see your point. Back to main objective, can you suggest a query for epics resolved 30days before or after the target end date? 

Laurie Sciutti
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.
Nov 09, 2023

@Mister Femi ~ it should look something like this (depending on what your Target End Date field resolves to / is named in your JQL):

 

Team = Atlas AND issuetype = Epic AND statuscategory = Done AND
"Target end" >= startOfDay(-30d) AND "Target end" <= startOfDay("+30d")
Laurie Sciutti
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.
Nov 09, 2023

@Mister Femi ~ more accurately than my previous response:  if you are looking for issues resolved within a date range specified in another date field (i.e. Target end date), I believe this would require a plugin (like ScriptRunner), which allows for date comparisons.  If you use ScriptRunner, you could include something like:

 

issueFunction in dateCompare("", "resolved <= 'target end' +30d") and issueFunction in dateCompare("", "resolved >= 'target end' -30d")
issueFunction in dateCompare("", "resolutionDate < dueDate +1w")

 

Reference:  https://docs.adaptavist.com/sr4js/8.2.1/features/jql-functions/included-jql-functions/date#dateCompare 

Thanks @Laurie Sciutti You are a star. Thanks. Sadly, my org restricts plugins. So will try the query you suggested. Much appreciated 

Like Laurie Sciutti likes this
Laurie Sciutti
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.
Nov 09, 2023

Sorry to hear that, @Mister Femi .  If you wouldn't mind accepting my answer I would appreciate it!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events