Jira issue-tab-panel implementation

Hi,

I’ve been working on a requirement to add a comment ID to each comment header in the issue view. During my investigation into the current implementation of the issue-tab-panel for the comments tab, I noticed that there is a module inside the descriptor file responsible for rendering comments.

Here is the relevant module configuration:

<comment-field-renderer key="system-comment-field-renderer" system="true" weight="-1">
    <context-provider class="com.atlassian.jira.plugin.comment.SystemCommentViewIssueContextProvider" />
    <resource type="velocity" name="issue-page-edit" location="templates/plugin/comment/system-comment-issue-page-edit.vm"/>
    <resource type="velocity" name="issue-page-view" location="templates/plugin/comment/system-comment-issue-page-view.vm"/>
    <resource type="velocity" name="field-edit" location="templates/plugin/comment/system-comment-field-edit.vm"/>
    <resource type="velocity" name="field-view" location="templates/plugin/comment/system-comment-field-view.vm"/>
</comment-field-renderer>

I’ve also created similar ‘issue-tab-panel’ and ‘test-comment-field-renderer’ modules in the atlassian-plugin.xml file. Additionally, I extended the CommentTabPanel and CommentAction classes. However, I’m currently stuck on how & where to register the ‘test-comment-field-renderer’ with my custom descriptor class.

Does anyone know how to resolve this issue?

Thanks in advance!