Hi,

When I use script runner, is there anyway to change the font size and color for the text? Thanks. 

3 answers

0 vote
Mahesh S Community Champion Jun 12, 2016

Yes, you can set the template as html. When the result is set as html, we will be able to style tags, carrying the font size and font color.

Can you show me how to set the template as HTML? Thanks very much.

Mahesh S Community Champion Jun 12, 2016

In the JIRA Administration-> Add-ons-> Script runner -> Scripted fields. We can define the scripted fields and you can see the portability to get the template of the scripted field. There, you can display the output as html

First - which part of Script Runner are you referring to  ? Scripted Fields maybe or something else ?

0 vote

Which text?  Most of the text ScriptRunner will give you goes through the JIRA templates, so generally the answer will be "no, because it's not ScriptRunner formatting it".

There are some exceptions, where ScriptRunner will be able to use formatting - Mahesh has given you the main one - scripted field output, where your code should generate the raw html for output.  But I'm not sure from your question if that's the area you want.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

180 views 0 2
Read article

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