JQL Query for tests with attachment in test step

Sascha Schulz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 29, 2024

Hey,

is there any way to filter for issues with attachments in one or more test steps using JQL query?

Using the query "attachments is not EMPTY", I only get issues with attachments attached to the actualy issue. However, when a file is attached to a teststep, its not listed under the attachment section and thus not recognized as an issue with an attachment by the filter.

 

Thanks and kind regards,
Sascha

1 answer

0 votes
Luiz Ricardo Pereira da Silva
Contributor
January 29, 2024

Hello @Sascha Schulz ,
I couldn't identify what type of problem would be Test Steps, but if it is a child (SubTask) you can use the query below:

(project = "Project A" AND the parent is EMPTY AND the attachments are not EMPTY) OR (project = "Project A" AND the parent is not EMPTY AND the attachments are not EMPTY)

So far I haven't been able to list the results of the query in order, but I believe that this query can help.

If the test step is an issue type pattern, I believe native JQL still doesn't allow you to do nested queries like listing all linked issues without a Fixed value like an Issue's own key. You would need an application like Scriptrunner, JQL Tricks or JQL Search Extensions.

Hope I helped you!

Gabriella Molnar-Toth November 19, 2024

Hi @Sascha Schulz 

have you found a solution for this? I have the same problem right now.

Thank you!

Suggest an answer

Log in or Sign up to answer