Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get a 'simple' query which should return anything without any linked tickets

Sascha Wiltenburg April 3, 2025 edited

Hi all, so I'm trying to get a 'simple' query which should return anything without any linked tickets attached, like this:

project in (A,B,C,D,E,F) AND statusCategory not in (Done) AND reporter in (reporterA,reporterB,reporterC) AND issueFunction not in hasLinks() ORDER BY created ASC, key ASC

However, somehow it returns an X amount of tickets, of which still several have some linked ticket?

Anyone more familiar with this or another solution?

Regards, Sascha

(Jira Software 9.4.18)

Kindly note: Also I'm missing 2 tickets which do meet the requirements, but are not showing in my results?

1 answer

0 votes
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2025

I think it'd be good if you can "prove" the faulty results by including screenshots (anonymized ofc, we don't need to know the actual issue data), but to see the linked issue tab, what type of link it is, what the category is, and so forth.

My first thought would for instance be around `hasLinks()`, perhaps you're seeing remote links (which should be ignored by that function iirc) or epic links (separate tab with epics but still a possibility).

Second step would be to isolate individual JQL clauses to see which "doesn't work".

Such as if you have an issue ABC-5; which you expect to either show up or not - then you could try the jql as 

```key = ABC-5 AND ...``` and basically try each JQL clause until you find out which one doesn't work the way you think it should.

 

Once you identify which JQL clause specifically doesn't work then it's easier to figure out why. Perhaps incorrect status category, perhaps a broken index, perhaps something else entirely.

 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events