Forums

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

SQL query to list all projects in category X with recent updated date

jmohr2
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2019

Hi,

I'm looking for a query to list all projects associated with a particular category and with the recent update date.

Thanks :)

 

4 answers

0 votes
Nic Brough -Adaptavist-
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.
January 25, 2019

Projects don't have an update date, so can you tell us what you're planning to use instead?

Jack Brickey
Community Champion
January 25, 2019

LOL.... i totally missed the "project" here and was simply assuming "issues".

0 votes
Jack Brickey
Community Champion
January 25, 2019

not sure what you mean by particular category which is important to understand to be able to provide a jql but...

 

<some particular category jql here> AND updated > -5d

replace the 5 w/ whatever you consider recent

of if you are asking for a "specific date"

<some particular category jql here> AND updated = updated > '2019/01/24'

change the date as required

0 votes
Tarun Sapra
Community Champion
January 25, 2019

Hello @jmohr2

I think you mean , you are looking for JQL.

Here's what will work for you

category = "<your category name here>" and updatedDate > startOfMonth() 

Projects in a specific category and updated in this month. 

Tarun Sapra
Community Champion
January 25, 2019

Querying JIRA DB is not straightforward and not recommended when something is already provided via JQL.

Like Nic Brough -Adaptavist- likes this
0 votes
Alexey Matveev
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.
January 25, 2019

Hello,

Join three tables: jiraissue, project and projectcategory

Никитоссс Картавый
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 9, 2020

не совсем понятно как их объединить, если у projectcategory нет общих столбцов с остальными таблицами 

Nic Brough -Adaptavist-
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.
December 9, 2020

It does - look at the IDs in the projectcategory table, you'll see them in the project table.

This sort of complexity is one of the reasons we all tell you not to bother looking at the database.  It's the worst possible way to report on a Jira system.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events