It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Join Issues to Sprints (on table AO_60DB71_SPRINT) Edited

Hi, everyone

I know this question has been asked here before but none of the threads I read solved my issue, so I'm raising this again (sorry)

I'm working with Jira 7.2 on an Oracle database. I need to query all the issues with their Sprints. I tried joining the jiraissue with the AO_60DB71_SPRINT table through the customfieldvalue (resulting on the query below), but it does not return any data. And, also, the Sprint ID I get on the Jira UI is different from the one that appear on the Sprints table.

SELECT s.id sprint_id,
i.ID issue_id,
cfv.updated updated_on,
i.issuenum,
i.created created_date,
i.resolutiondate resolved_date,
i.duedate due_date
FROM customfieldvalue cfv
INNER JOIN AO_60DB71_SPRINT s ON CAST(s.ID AS VARCHAR(10)) = CAST(cfv.stringvalue AS VARCHAR(10))
INNER JOIN jiraissue i ON i.id = cfv.issue
WHERE customfield = 10004

Does anyone know how can I join these tables, please?

Thanks so much!

Gratefully,

Ana Lazarini

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

365 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you