Attachments properties

Alex Trebek
Contributor
December 29, 2024

Hello!

Our users quite dissatisfied with the way the attachments module on IssueView screen works. So we decided to customize attachments webpanel by hiding system provided list and showing our table fetched by custom REST Endpoint.

One of the requirements is to have categories/tags which can be set for a particular attachment. Those tags then will be used for sorting and filtering purposes.

The problem is how to store the Attachment-to-Tag links.

 

JavaDoc for Attachment class (link) says that attachments could be added with Properties.

Correct me if I wrong but it looks like it should be working like EntityProperties (or it is exactly this).

But unlike Users, Projects, Issues and Comments there is no specific 'service' class for Attachments. Like, for example, IssuePropertyService for Issues.

 

As a workaround we are currently leaning on using an Issue property (since attachments are linked directly to only one Issue at a time).

But it would be much more natural and convenient to use Attachment-native ones.

 

Any help on how to use Attachments properties will be much appreciated!

1 answer

0 votes
Humashankar VJ
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.
December 30, 2024

Hi @Alex Trebek 

There is no built-in feature to add custom properties or tags directly to attachments.

The Attachment class's JavaDoc refers specifically to system-defined properties, and does not support user-defined properties.

Moreover, unlike issues or projects, there is no dedicated service class for managing attachment properties, which restricts the ability to customize attachments.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events