How to add my jira plugin in the create issue modal description field?

Hi there,

I am developing a Jira plugin and I want to display it on top of the description field in the “Create Issue” modal, similar to how the “Canned Response Template” plugin is shown in the description field. Can anyone help me with how to achieve this?

As you can see in the attached screenshot, when we install the canned response template plugin, it appears at the top of the description field. Can anyone guide me on how to create a similar plugin?

Thanks!

1 Like

Hi @SagarShukla

You can try this :

  • Define a web resource in your plugin descriptor (add JS and CSS resources)
  • Edit DOM with JS
AJS.toInit(function() {
    var toolbar = AJS.$('.wiki-edit-toolbar');
    if (toolbar.length) {
        // Add your custom html
    }
});

It’s not very elegant, but I don’t see how we could do it differently to interact with the description toolbar.