Extra attachment meta data?
Is there any way to extend the meta data I can enter against an attachment? Maybe by using scaffolding to supplement the attachment info?
Currently, a file can be attached to a page and reported on using the reporting plugin, if wanted (maybe to neaten up the attachments report), but you can only store a comment against an attachment. I would also like to be able to hold things like "Status", "Location", "Document version" (not Confluence's version), etc.
I tried this, but the docStatus text-data field didn't seem to work?!?
Any thoughts?
Thanks
Martin
Currently, a file can be attached to a page and reported on using the reporting plugin, if wanted (maybe to neaten up the attachments report), but you can only store a comment against an attachment. I would also like to be able to hold things like "Status", "Location", "Document version" (not Confluence's version), etc.
I tried this, but the docStatus text-data field didn't seem to work?!?
{report-table}
{local-reporter:content:attachments}
{text-sort:content:title}
{local-reporter}
{report-column:title=Name|injected=true|link=true}{report-link:content:download path}{attachment-icon:contentType=%content type%|fileName=%file name%} %file name%{report-link}{report-column}
{report-column:title=Created Date|injected=true}%creation date > "d MMM yyyy kk.m"%{report-column}
{report-column:title=Description/Comment|injected=true}%comment%{report-column}
{report-column:title=Type|injected=true}%content type%{report-column}
{report-column:title=Status}{text-data:docStatus}{text-data}{report-column}
{report-empty}_No project documents yet_{report-empty}
{report-table}
Any thoughts?
Thanks
Martin
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?There's no easy way that I know of. I've seen cases of using a {table-data} containing an {attachment-data} and other fields used to quasi-associate extra fields with that attachment, but that's about it. Something like this:
{table-data:Attachment Data}
|| Attachment || Status || Extra Details ||
| {attachment-data:Attachment} | {list-data:Status}...{list-data} | {text-data:Extra Details} |
{table-data}
You can then get the meta data for an attachment via a filtered report. Eg:
XYZ Status: {report-block}
{local-reporter:data:AttachmentData|source=XXX}
{text-filter:data:Attachment > reference:value > attachment:file name|include=XYZ.ext}
{local-reporter}
{report-body}{report-info:data:Status}{report-body}
{report-block}
Not exactly pretty, but might be useful. The ideal option would be a separate plugin that gave you a nice UI for adding extra metadata about attachments, and exported a Supplier so Reporting could get that information. But I'm not aware of any such beast.
Loading Profile...



EMPLOYEE