Going from this linkĀ
I needed to update the script so that it display project name and project id but i was not successful up to now
Can you please provide some help?Please emergency
I found my solution and it works like a charm on Jira DC 8.20 Oracle db
selectss.*,case when ss. "Last Update" < CURRENT_DATE - 180then 'NO'else 'YES'end as "Updated in the last 6 months?"from (select distinctp.id,p.pname as "Project Name",p.pkey as "Project Key",case when p.pkey = p.originalkeythen NULLelse p.originalkeyend as "Project Archived?",cu.lower_uset_name as "Project Lead",cu.lower_email_address as "Lead Email",case when cu.active = 1then 'YES'else 'NO'end as "Lead Active?",MAX(ji.updated) as "Last Update",count(distinct ji.id) as "Issue Count"from jiraissue jiright join project pon p.id = ji.projectjoin app_user auon p.lead = au.user_keyjoin cwd_user cuon au.lower_user_name = cu.lower_user_nameleft join propertyentry peon p.id = pe.entity_idand 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,cu.lower_user_name,cu.lower_email_address,CASE WHEN cu.active = 1 THEN 'YES' ELSE 'NO' END)ss
It looks like you're new here. Sign in or register to get started.