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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

146 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you