Hi Everyone!
I've been trying to get a CQL working. The use case is:
1. report that returns a list of comments made to pages within a single space
2. over the past 7 days
3. filter by a specific label ( i can't make this one work)
This is the query I have (minus the label):
space="LANDING" and type=comment and created >= now("-7d")
This filters out the comments in the last 7 days. But if I add the label:
space="LANDING" and type=comment and created >= now("-7d") and label in (remove)
Then the query returns 0.
I tried adding the type=page (and / or). With AND it shows 0 results. If I use the OR then the returns are all comments (it bypasses the created >=now)
space="LANDING" and type=comment or type=page and created >= now("-7d") and label in (remove) order by lastModified desc
Is this a CQL limitation? I can't find information about that.
Thanks for the help!
Regards
Hello @Aaron Pavez
Unfortunately, this combination is not possible, as the Comments do not "inherit", or "receive" the label attribute, only the page. Thus, they are not shown in the results, because the comments themselves do not carry the Label, but the Page is the one that does.
Ill attach a link to a ticket where Atlassian mentions this.
Hopefully this will be useful to anyone who seeks to achieve the same as we did.
With friendly regards
Rodrigo
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.