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,465,122
Community Members
 
Community Events
176
Community Groups

Groovy formatting bold

Hey i am doing a "create issue" in a workflow transition with the JWME addon. Something like

 

FOB Number: <%=issue.get("FOB Number")%>

So thats fine and works, but i want to format this text, either bold or red or something to draw the eye to it in the resulting new service request description that gets created from this.

 

i have tried wrapping various things in asterisks *fob number* (etc), but that just prints the asterisks verbatim. How do i format in a groovy template? or get the result to be formatted and not just plain text? there must be a way right? groovy says you just wrap things in asterisks to *strong* them like that hopefully did.

 

2 answers

1 accepted

0 votes
Answer accepted

This is actually independent of JMWE. What matters is where you put that text. You mentioned you are creating a new issue using the Create ISsue post-function, but where are you putting the text you want to format?

If you want to be able to use formatting on the text (wiki-style), the destination field needs to be configured to use the wiki renderer, which is done in Jira's Field Configuration.

For example, if you were writing:

FOB Number: *<%=issue.get("FOB Number")%>*

 to the Description field (which by default supports wiki markup), the FOB Number would be shown in bold.

I think you are saying that the "test groovy template" button does not render the wiki markup. I am trying to put this content into description.

I expected it to render in the test, but maybe i just need to publish it and then test again.

Thats kind of shitty for previewing formatting, having to republish the workflow for any little change.

 

i just tested and you are correct. the output does not render in the test window but DOES render in the description field.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events