How to list attachments with specific filename *.xxx in my JIRA server (e.g. *.bmml)

Hi there!

One of our customers is trying to determine how many files are stored on their JIRA Server instance. He tried to list them using different formulas but couldn’t get the magic one yet.

Mockups for JIRA Server (our plugin) does store the .bmml files as simple attachments to the JIRA issue, is there an easy way to list all the .bmml files on a JIRA Server instance?

Thanks for your help! :slight_smile:

Easiest is probably just hitting the search end point and expanding the change log:
/rest/api/2/search?jql=attachments%20is%20not%20empty&expand=changelog

That will give you the change log on issue and at that point you’d just have to search through that. Word of caution since this shows the changes - it will also show when things were added AND deleted.