Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve updated time of the issues for all projects

Packialakshmi Subramanian May 14, 2020

Hi,

There are 1000's of projects created in our instance. We would like to retrieve last updated date of each of those projects to make crucial business decisions.

I used below PostgreSQL query to get the data.

SELECT DISTINCT p.pkey,p.LEAD,MAX(i.UPDATED) as "Last Updated"
FROM jiraissue i
INNER JOIN project p
ON p.ID = i.PROJECT
GROUP BY p.pkey,p.LEAD,p.pname
ORDER BY MAX(i.UPDATED) ASC

 

However, I still see discrepancies with certain projects. please advise how should I modify the query to retrieve last action date of these projects. 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Atlassian, Team '25 Europe, Atlassian conference, AI-powered teamwork, Atlassian events, keynote speakers, Barcelona tech conference, Atlassian Williams Racing, Carlos Sainz, Jenson Button, Mike Cannon-Brookes, Anu Bharadwaj, Atlassian Rovo

Atlassian Williams Racing is coming to Team '25 Europe 🏎️

Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.

Register now
AUG Leaders

Atlassian Community Events