Let's say i have:
- a self-managed JIRA instance on a mysql db
- a JIRA project [project A] with an id of 10101
- a mandatory custom field (importance) for all project A issues (cf id 12321)
- three options for this custom field: high, medium, low
Let's also say I'm not super confident in my sql skills (my jql is way better). Since project A is the only project using this importance field, I'm doing something like:
SELECT `Customfieldoption`.`CUSTOMFIELD` AS `CUSTOMFIELD`,
`Customfieldoption`.`customvalue` AS `Customvalue`
FROM `customfieldoption` AS `Customfieldoption`
WHERE ((`Customfieldoption`.`CUSTOMFIELD` = 12321))and what I end up with is three rows for each issue--it's showing me ALL OPTIONS rather than the selected option. Is this:
- an error in my query because I'm sql weak, or
- an error in my query because there's table data I'm missing for the SELECTED option?