Is there a way to pull attachment data from JIRA

Mohammed Khadir February 17, 2015

Hello

 

Is there a way to pull attachment data from JIRA such as date and time added and file name ?

 

Thank you

Mohammed

2 answers

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
February 17, 2015

getAttachmentList from JIRA Command Line Interface (CLI) pulls information from JIRA into a csv file. Use together with runFromIssueList to get all attachments across multiple attachments. getAttachmentList shows the example output.

0 votes
kitkat
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 17, 2015

JIRA only has one function associated with attachments (attachments), and it only searches whether an issue has or has no attachments. However, there are plugins that do extend this ability:

  • JQL Tricks (limited, but has: hasAttachments([Count],[Operator]); attachedByUser([User]) :

http://www.j-tricks.com/jql-tricks-plugin.html

  • Script Runner (you can find out the file extension with this one: hasAttachments ([file extension]); fileAttached(attachment query) :

https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-IssueLinks

  • Craftware Search Attachments for JIRA:

https://marketplace.atlassian.com/plugins/pl.craftware.jira.search-attachments-plugin

Suggest an answer

Log in or Sign up to answer