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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.