Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Giving format to a message custom field

Joan Andreu Juan Torrens
Contributor
August 17, 2020

I'd like to know how to give format to a Message Custom Field. When I use HTML in the default value the results in the user's screen show the HTML code, not the message as I'd like them to see.

 

Example:

If I enter this:

<font color="red">Check <a href="" target="_blank">this link</a> before proceed.</font>

I'd like to see a red text and a link to a new window, but what I get is:

<font color="red">Check <a href="" target="_blank">this link</a> before proceed.</font>

If I check again the Default Value now the content is:

<p>&lt;font color="red"&gt;Check &lt;a href="" target="_blank"&gt;this link&lt;/a&gt; before proceed.&lt;/font&gt;</p>

 

So, how do I have to write there so I can get the results I want?

1 answer

1 accepted

2 votes
Answer accepted
Rudy Holtkamp
Community Champion
August 17, 2020 edited

You should use the Jira mark-up.

Use this instead:

{color:#d04437}Check [this link|http://example.com] before proceed{color}

 

Tip: Go to the field 'Description' and create your message their (with markups) and copy that to your message field.

Joan Andreu Juan Torrens
Contributor
August 19, 2020

Great! It worked well. Many thanks

Like • Rudy Holtkamp likes this
subham patra
Contributor
September 3, 2021

Hi @Rudy Holtkamp  - Many thanks for the above. Is there any trick to set the BOLD text? 

For example;

{color:#d04437}Check [this link|http://example.com] before proceed{color}

The output should be - "Check this link before proceed"

Thanks in advance! 

Rudy Holtkamp
Community Champion
September 3, 2021

Sure, just put an asterisk in front and behind it.

*{color:#d04437}Check [this link|http://example.com] before proceed{color}*
subham patra
Contributor
September 3, 2021

Ahh! It was that easy!! :D 

Many thanks :-)

Like • Rudy Holtkamp likes this
Gábor Budai October 6, 2021

@Rudy Holtkamp Where should I add this mark-up? When I edit the default value for the message custom field? (that"s not working for me) On DC. Thanks!

Kathy Hart
Community Champion
November 24, 2021

@Gábor Budai You can never go back and edit the default value field after you create it, because it will have been translated to HTML, and if you make any edits and update the field it all goes wrong and displays the HTML code. 

You basically have to redo the field from the beginning every time. So save your original markup for future reference. But it has always been like that. 

Like • Gábor Budai likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events