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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,623
Community Members
 
Community Events
184
Community Groups

I need to create a report that tracks how long an issue has been open excluding weekend.

Edited

I need to keep track of all open defects with priority critical that are still open after 1 day, but I need to exclude Saturdays and Sundays. 

Same for defects that are high priority but that are still open after 2 days also excluding weekends.

I need to still be able to track the items even if they are marked as done.  So all items that missed the SLA are shown. 

I tried using the following but didn't work: 

Project = Rocket AND issuetype = bug AND Priority=high AND status = "Done" AND resolutiondate >= startOfWeek() AND resolutiondate <= endOfWeek() AND issueFunction in dateCompare("created", "resolutiondate", "workingDaysBetween(created, resolutiondate) <= 2")

Error: 

Scripted function "dateCompare" compilation failure. Contact administrator and check logs. Message: The comparison must contain exactly one comparison operator which is either >, <, =, <= or >=.

If there is a better way, I'm all ears. 

Thanks 

1 answer

1 accepted

1 vote
Answer accepted

Hi Roberto,

Please check the below JQL search

For open defects with priority "Critical" that are still open after 1 working day (excluding weekends)

project = Rocket AND issuetype = Bug AND priority = Critical AND status != Closed AND status != Resolved AND created <= -1d AND resolutiondate is EMPTY AND created >= startOfWeek(-1w) AND created <= endOfWeek(-1w) OR (created <= -1d AND resolutiondate is EMPTY AND created >= endOfWeek(-2w) AND created <= startOfWeek(-2w))

 

For high priority defects still open after 2 working days (excluding weekends)

project = Rocket AND issuetype = Bug AND priority = High AND status != Closed AND status != Resolved AND created <= -2d AND resolutiondate is EMPTY AND created >= startOfWeek(-1w) AND created <= endOfWeek(-1w) OR (created <= -2d AND resolutiondate is EMPTY AND created >= endOfWeek(-2w) AND created <= startOfWeek(-2w))

 

Thanks

Hi Ramyaallena, 

The JQL search does not work. It doesn't show any errors, but it doesn't show high priority defects still open after 2 working days (excluding weekends). 

Thanks

Never mind it work perfectly. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events