Jira Need to Add Button to Comment Toolbar

2019-08-17 01:47发布

问题:

So we currently have Jira in our workplace and no Jira Administrator. I'm feeling up to the task and would like to know if Jira has the functionality I'm looking for.

So when you have comments in Jira or even in the body of a Jira ticket. You can italicize the text from the comment ribbon

As you can see I am interested in being able to have the same functionality as bold or italicize or underline but I want to be able to highlight some code that i insert in a ticket comment and click a button and make it into a code block. Or add curly brackets and make it a quote... Exactly like how StackOverflow does it.

Anyone know how I can accomplish this?

回答1:

I think you can use plugin for this. jeditor plugin gives you more options in text editors. all information you need is provided in above link.after installing this plugin you can change the text renderer as "JEditor Renderer". Marketplace: https://marketplace.atlassian.com/plugins/com.jiraeditor.jeditor

or you can use.....

Note:-I guess this is not the exact answer you need but I think you can use macros inside the comment field. ex:if you want to add panel in inside of comment you can simply use

{panel}Some text{panel}
{panel:title=My Title}Some text with a title{panel}
{panel:title=My Title| borderStyle=dashed| borderColor=#ccc| titleBGColor=#F7D6C1| bgColor=#FFFFCE}
a block of text surrounded with a *panel*
yet _another_ line
{panel} 

and if you want to add code you can use...

--- Java example ---
{code:title=Bar.java|borderStyle=solid}
// Some comments here
public String getFoo()
{
    return foo;
}
{code}
*--- XML example ---*
{code:xml}
<test>
  <another tag="attribute"/>
</test>
{code}

here is a example screenshot..

follow this link for more information..

UPDATE with the plugin you can get something like this..I think this will helps you.