The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Format text within Description field of an Issue Collector - Confluence

Judah
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 Champions.
June 24, 2020

In my Issue Collector, I want to format the pre-filled Description field text as BOLD. When I use Javascript .bold() it produces an interesting result!

$(document).ready(function() { 

// === I SET THE VALUE OF MY VARIABLE AND CALL THE BOLD METHOD
var describe = ('Please describe your request:').bold()

window.ATL_JQ_PAGE_PROPS = $.extend(window.ATL_JQ_PAGE_PROPS, {


'ce68de52' : {


triggerFunction : function(showCollectorDialog) {

$('#feedbackbutton').click(function(e) { e.preventDefault(); showCollectorDialog(); }); } , fieldValues: {

// === I PASS MY VARIABLE INTO THE VALUE OF THE DESCRIPTION FIELD, THE RESULT IS HMTL AS TEXT???
description : `${describe}`

} } }); });

 

The above code displays as shown in the picture below. How do I format that pre-populated text as bold?? I am stumped!!

 

boldText.PNG 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bao
August 28, 2020

Description fields use wiki mark up, not html.

You should use *Please describe your request.*

More about wiki mark up is available at: https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html

Judah
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 Champions.
August 28, 2020

Thank you for your response!

Correct me if I am wrong, but in order to embed an issue collector on a Confluence page, one must use the HTML macro. 

When I format the text within the HTML macro with wiki markup (*Please describe your request*) as you have recommended it displays as such within the description field. It is not bolded, it displays text with asterisks. boldText2.png

I would like the user to see BOLD TEXT in the issue collector itself. Not simply text with the asterisks. 

Bao
August 28, 2020

Below the description field, at the bottom left corner there is a rectangle button (toggle wili markup) and a question mark button(wiki markup help). Click on the rectangle button, you’ll see your text in bold.

Judah
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 Champions.
August 31, 2020

I see.

When I click the rectangle, the field then becomes locked to editing.

Is it possible to edit the field w/ mark up activated? 

Bao
August 31, 2020

If you have Admin permission, you can configure the Description field to be in Preview mode when creating new issue (it’s not user friendly to lock the field when editing is it?). The other option is to write script to trigger click on the wiki markup button when the issue collector screen is loaded.

Madhurupa Moitra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2023

Is it possible to remove the rectangle button (toggle wiki markup) and the question mark button(wiki markup help)?

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events