a core.logic relation for jira queries