Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,149
Community Members
 
Community Events
184
Community Groups

Format text within Description field of an Issue Collector - Confluence

Edited

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

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

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. 

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.

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? 

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!
Apr 05, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events