Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

can I do a "comment out" in a JQL statement

Can you make a comment out situation in a JQL string?   Like you can in html  <!-- text --> 



4 answers

I really need something like this.


I'm the "go to guy" for JIRA queries in my company, so I get to make extremely complex filters. I'm talking things like nesting filters in filters 3-4 deep, with each filter full of nested "LinkedIssuesFromQuery" parameters. And I've actually run into the maximum number of parameters that I can put in just one filter.

So yea, Really Complex.


I've been trying to fake comments by putting in parameters that are really just comments. Stuff like " AND summary !~ "This part does blah, for this reason, on this date."


If there was actually a way to Comment, for real, in the jql, I would be so ecstatic.

BTW - this is hilarious and brilliant at the same time.  Thx for sharing- I will be doing this.

Doing summary !~ in JQL might exclude tickets you want. I use (comment !~ "**Missing labels**" OR commentsCount >= 0) instead.

yes, I'm hoping for this feature avialabe soon, it will help me to trace my issues 

any answer to this questions? I need to put a comment on a query to help me track time. 

I would love to have this feature as well.

Same here, hope they will have this feature similar to any other query command.

same here .. being able to add comments in any type of coding language is a great feature like in REXX I would use a /* all your comments here */ 

Like rtapayan likes this

Curious. What's the need for the comment out? I don't remember JQL having that feature.

I don't think it has a comment ability either, you're right. Sometimes it'd be nice to leave comments in a query though, just to be nice to others if a query is complex.

I need this in order to implement a hack to refresh a JIRA query in Google Data Studio.  I need some part of a JQL query string to change - without affecting its function, so that the sheet refreshes.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you