I am quite a beginner with JIRA and have been experimenting with JQL and some plugins. I need to show only comments for a JIRA issue and show it on a Confluence page. What I thought was there could be some JQL way of doing this. If it's possible with JQL, I can insert a JIRA item in the confluence page and provide the JQL which only fetches the comments for a particular JIRA ticket.
JQL is for finding issues, not returning the information on those issues. If you're trying to compare it with SQL, then the best way to think of JQL is that "it is only the where clause". There's no "select what", it's just "where" and your report or display is reponsible for selecting what to display.
To fetch only comments, you're going to need a bit of code - you need to write a macro like the JIRA issues macro that can accept JQL, ping JIRA with it and then render only the comments from the result list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.