Forums

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

Message Custom field default value not working as expected with html code for Bold.

Amit Kumar Singh
Contributor
January 5, 2024

Earlier i was using below code in JIRA Server for default value- with html code to show as header under different tabs on edit screen..




 

But now it is showing as it is..

 

1 answer

0 votes
Amit Kumar Singh
Contributor
January 5, 2024

.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2024

Atlassian are gradually removing the ability to use HTML in options and text because it is inconsistent and a possible attack vector.

I suggest re-evaluating what you think you want from this field and simply asking/training your users to enter the right plaintext data.

Like Amit Kumar Singh likes this
Amit Kumar Singh
Contributor
January 7, 2024

Thanks Nic for your response on this, i understand that, actually we were using in JIRA Server earlier, now we have moved to Jira Cloud, and customer wants the same user interface, please see below, is this because we do not have "SCRIPTRUNNER" in Jira Cloud, then there would one more problem while creating scripted field.

Amit Kumar Singh
Contributor
January 8, 2024

image.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2024

Cloud is a lot further down the path of "no HTML injection" than Server/DC.  You can not use it in message fields.

Like Amit Kumar Singh likes this
Amit Kumar Singh
Contributor
January 9, 2024

Ok, Thank You!

we are going to use just default value with HTML code, and what about scripted field, i do not see script runner here, how we can to auto calculate few field in one custom field..?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2024

You can use Automations to populate fields.

Like Amit Kumar Singh likes this
Amit Kumar Singh
Contributor
January 9, 2024

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events