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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.