Can I set up a template for comments?

Hi

Can I set up template/pre define text so the text is pre populate in case I click on "Merge into quick fix"?

So the

<textarea data-issuekey="EDU-7831" data-projectkey="EDU" rows="10" name="comment" id="comment" cols="60" class="textarea long-field mentionable"></textarea>

has predefined text?

Could this be set up for my account only?

Thank you

.

2 answers

Hello Radek

Is there a reason the template needs to be in a comment?

Anyways, for this case, based on what you describe, perhaps you can create a user macro .. and then insert the user macro in a comment on-demand.

If going to be part of a bigger process, perhaps a plugin might be a good idea (i.e., click "merge..." which creates comment and context - but not clear on how its pulling the JIRA issue key in first place - have you already created that functionality elsewhere?)

https://confluence.atlassian.com/display/DOC/Guide+to+User+Macro+Templates

https://developer.atlassian.com/display/CONFDEV/User+Macro+Module

==

Another idea - maybe outside of the box on what you are asking - but maybe interesting for injecting templated content into Confluence page. Just another idea.

https://developer.atlassian.com/display/CONFDEV/Writing+Soy+Templates+in+Your+Plugin

Hope this helps with some ideas anyways..

Ellen

I believe that macro is what I was looking for. I'll explore and make a comment here.

Actually - I missed the "JIRA" labels on your question and for some reason had a Confluence-brain in my answer. I think b/c I don't think of JIRA as making templates.. Anyways, good luck with that.

If you want to do something for your account only, you could use the speakeasy plugin: https://marketplace.atlassian.com/plugins/com.atlassian.labs.speakeasy-plugin

This plugin allows to add extra JavaScript to the JIRA page, so I assume it should be possible to pre-fill the comment box when that button is clicked via JavaScript.

Such scripts can be shared with the whole company, but only if the user enables it, it will be triggered.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,942 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot