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,558,930
Community Members
 
Community Events
184
Community Groups

Extracting Data from Jira

Hi I have the below query and i would like to add details from project table.

SELECT Jiraissue.project "Project ID", JIRAISSUE.id "Issue ID", JIRAISSUE.summary, ENTITY_PROPERTY.*

FROM ENTITY_PROPERTY

INNER JOIN JIRAISSUE ON ENTITY_PROPERTY.entity_id =JIRAISSUE.id

WHERE ENTITY_PROPERTY.property_key = 'com.greenyloop.definitionofready' or

ENTITY_PROPERTY.property_key =  'com.greenyloop.acceptancecriteria' or

ENTITY_PROPERTY.property_key =  'com.greenyloop.dod'

;

 

the details I would like to include from Project table is Project name, Project Key, Project Lead/owner.

 

is there any way to link I couldn't use another INNER JOIN and include project as not sure how to.

1 answer

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 29, 2023

Hi

 

The query below should return what you ar eexpecting.

 

SELECT Jiraissue.project "Project ID", project.pname, project.pkey, project.lead ,JIRAISSUE.id "Issue ID", JIRAISSUE.summary, ENTITY_PROPERTY.*
FROM ENTITY_PROPERTY
INNER JOIN project on Jiraissue.project = project.id
INNER JOIN JIRAISSUE ON ENTITY_PROPERTY.entity_id =JIRAISSUE.id

WHERE ENTITY_PROPERTY.property_key = 'com.greenyloop.definitionofready' or

ENTITY_PROPERTY.property_key = 'com.greenyloop.acceptancecriteria' or

ENTITY_PROPERTY.property_key = 'com.greenyloop.dod'

;

 

Regards

Hi thanks Florian

I have already tried that and getting this error...

ERROR: missing FROM-clause entry for table "jiraissue"

LINE 3: INNER JOIN project on JIRAISSUE.project = project.id

Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 29, 2023

Can you try 

 

SELECT Jiraissue.project "Project ID", project.pname, project.pkey, project.lead ,JIRAISSUE.id "Issue ID", JIRAISSUE.summary, ENTITY_PROPERTY.*
FROM ENTITY_PROPERTY
INNER JOIN JIRAISSUE ON ENTITY_PROPERTY.entity_id =JIRAISSUE.id
INNER JOIN project on Jiraissue.project = project.id

WHERE ENTITY_PROPERTY.property_key = 'com.greenyloop.definitionofready' or

ENTITY_PROPERTY.property_key = 'com.greenyloop.acceptancecriteria' or

ENTITY_PROPERTY.property_key = 'com.greenyloop.dod'

 

Regards

thanks you so much! 

I wish I had tried to swap the inner joins..

regards,

OJ

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.6.13
TAGS
AUG Leaders

Atlassian Community Events