Search and show all tickets, that have attachments

Hello,

I'm facing a problem. Is it possible to define an advanced search, that shows me all tickets in a given project, which have attachments?

Something like:

project = "projectName" AND attachments IS NOT EMPTY

There is no field "attachments"...

Thank you in advance!

Steve

5 answers

1 accepted

1 vote
Thomas Schlegel Community Champion May 29, 2012

Hi Steve,

this does not work out of the box. You have to use the JQL Tricks Plugin (https://marketplace.atlassian.com/31399) . Unfortunately it is not free.

Best regards

Thomas

Thank you for your fast response. This answer fits my needs! :)

8 votes
Andrew Lui Atlassian Team Mar 09, 2014

You can now do this in JIRA 6.2 using the attachments JQL function.

this can be done natively without JQL Tricks (although that plugin is pretty awesome)

{code}

project = "projectName" AND NOT attachments is EMPTY

{code}

1 vote

I wrote a plugin to solve this with a derived field, ages ago. I really should dig it out and publish it.

Hi Nic, were you able to publish the plugin? The JQL Tricks Plugin is not free.

Yeah, but I guess it is worth the cost.

Check this add-on : https://marketplace.atlassian.com/plugins/pl.craftware.jira.search-attachments-plugin

It can do following queries:

  • issue in havingAttachments()
  • issue in havingAttachments("search text")
  • issue in havingAttachments("type:pdf")
  • issue in havingAttachments("name:workflow type:png")
  • any mix of above

It can search across pdf, office docs (ms/open/libe) and so on - it uses extractors for this formats.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

511 views 1 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you