query jira through sql interface and plot the result