You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I found my solution and it works like a charm on Jira DC 8.20 Oracle db
,case when ss. "Last Update" < CURRENT_DATE - 180
end as "Updated in the last 6 months?"
p.pname as "Project Name",
p.pkey as "Project Key"
,case when p.pkey = p.originalkey
end as "Project Archived?"
,cu.lower_uset_name as "Project Lead"
,cu.lower_email_address as "Lead Email"
,case when cu.active = 1
end as "Lead Active?"
,MAX(ji.updated) as "Last Update"
,count(distinct ji.id) as "Issue Count"
from jiraissue ji
right join project p
on p.id = ji.project
join app_user au
on p.lead = au.user_key
join cwd_user cu
on au.lower_user_name = cu.lower_user_name
left join propertyentry pe
on p.id = pe.entity_id
and pe.property_key = 'jira.archiving.projects'
GROUP BY p.id,p.pname,p.pkey,
CASE WHEN p.pkey = p.originalkey THEN NULL ELSE p.originalkey END,
CASE WHEN p.id = pe.entity_id THEN 'YES' ELSE 'NO' END,
CASE WHEN cu.active = 1 THEN 'YES' ELSE 'NO' END