Trying to find a way to back-end update some data to support changes needed for Portfolio. I need to find a way to get a list of issues, via SQL, that have the Team field equal to a specific value. I can't seem to figure it out and the customFieldValue doesn't seem to be linking it as expected. Have this so far:
SELECT * FROM jiraissue i
join customfieldvalue cfv on cfv.ISSUE = i.ID
and cfv.CUSTOMFIELD = 11900 --custom field for Team