JQL for cases that contains attachments with a specific name?

Abdelrahman R August 24, 2022

Dear all community members,

I hope you are well today,

I would really appreciate your support to provide the JQL syntax that would retrieve all cases that contain attachments with a specific name if applicable.

 

Thanks in advance.

3 answers

0 votes
Marlene Kegel - codefortynine
Atlassian Partner
September 15, 2022

Hello @Abdelrahman R

I am Marlene from codefortynine.

With Dynamic Custom Fields for Jira you can create a computed custom field which contains the names of the attached files. The field gets automatically updated, when an attachment was added or removed.

Once you've added the field to your issues, you can easily filter for issues which contains attachments with a specific name.

dynamic-custom-fields-jira_attachment-filenames.png 

The field is created with Jira expressions, but since we offer a template for your use case, you don't need any technical background to create the field.

  • Go to Jira settings > Dynamic Custom Fields for Jira "Field Configuration"
  • Select "attachment filenames" from the template dropdown
  • Click save

Now you can add the field to your issues like any other Jira custom field.

dynamic-custom-fields-jira_attachment-filenames1.png

0 votes
mauricio.groth
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.
August 24, 2022

Hi @Abdelrahman R

As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.


With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions

You can use this query to Find issues with an attachment name containing "screenshot". 

attachmentName ~ "screenshot"  

Check out the documentation for more examples.

If you have any other questions, please contact our support. We’ll be happy to help you!
Best regards,
Maurício

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2022

Unfortunately OOTB it is not possible to search attachments by name or content. You could consider an add-on like scriptrunner which supports searching of attachmentName

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2022

@Abdelrahman R ,  Mauricio offered another good and popular addon. I thought I would also add a list for consideration/assessment via this Marketplace search - https://marketplace.atlassian.com/search?query=jql%20extension 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events