How do I change the text color for a JIRA panel or code macro?

JIRA Service Desk Cloud

The example I want to achieve is green text on black background. E.g.:

{code:title=Black background, green text|titleBGColor=#000000|titleColor=#00CC00|bgColor=#000000|color=#00CC00}
Cannot read this as the font is only a slightly lighter black too!
{code}

The title color has changed which was unexpected as it is not defined in the "Text Formatting Notation" for "Advanced Formatting" (https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=advanced).

However, the text color in the body has not gone green. What parameter should I use for the body text color?

Thanks, Stephen D

1 answer

0 vote
Christoph Thomas Community Champion Jul 31, 2017

Stephen - you have used the titleColor attribute - if you remove it the color should not change. For the text color in the panel just use the panel macro instead of the code macro and then you should be able to use the color macro (https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=texteffects) inside of the panel I guess.

Cheers

Christoph

Thanks Christoph for your response, however it does not quite give me what I want.

{panel:title=Black background, green text|titleBGColor=#000000|titleColor=#00CC00|bgColor=#000000|color=#00CC00}
{color:#00CC00}{{Cannot read this as the font is only a slightly lighter black too!}}{color}
{panel}

The above panel gives me part of what I want which is green text in the body. But the font of the title is standard (variable space) font rather than a mono-spaced font.

What I am looking for is both the title and body font colours to be controlled from the open {code} (or {panel}) macros as originally illustrated.

The {{titleColor}} was an accidental find while I was testing, and is something I was trying to do. It is something I would have expected for the body as well. I was surprised that the text notation notes did not advertise it as a parameter.

Stephen D

Christoph Thomas Community Champion Aug 01, 2017

You're welcome - I guess you are experiencing the limitations of JIRA formatting... However you could try to include some style sheet e.g. in the announcement banner. Or use something like JEditor. Do you want to have all code macros formatted like this? Only in JIRA or also in the service desk customer view?

Cheers 

Christoph 

In JIRA as needed, not all the time. I might use it for a customer view.

It is something I would like to be able to do, but probably not in my current context.

If it is a limitation, then I think it is a suggestion to have it added to the options.

I am a typographer from way back so I would have expected that if you can change the background color (title and body) that you would also be able to change the font color for both places.

As for changing the style sheet, I do not have access to that.

Christoph Thomas Community Champion Aug 02, 2017

Hey - how about contacting the Atlassian support and ask them about this formatting option - this way you can make sure that it is currently not possible and let it add to the suggestion backlog?

Cheers 

Christoph 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

966 views 2 14
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