You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hey,
I want to copy the content of an Insight Textarea Attribute to a jira custom field.
I do this with an Insight Postfunction “Set a Jira custom field with the attribute value from a selected object”
The content is copied, but the formatting is not correct. It looks like HTML-code is being copied.
How do I make sure that the text in the jira field is displayed the same as in the Insight object?
I am now using a jira multi text field with wiki rendering.
Anyone tips, suggestions?
Thanks in advance.
Groetjes,
Greetings,
Marco
p.s. Attached a screenshot of the display in the jira field.
And a screenshot where you can see the display in Insight and the result in jira custom field
This is actually quite a huge issue.
I am facing to this and trying to solve that last few months.
Got official Atlassian reply - it is not supported.
There are two or three workarounds.
First is to strip all HTML tags and receive a plain text - use
textToStrip.replaceAll("\\<.*?>"," ");
Second approach is to create translation library - own method to convert html tags to wiki markup tags.
The last approach I dug somewhere deep in community is to use
com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter
class from the atlassian-renderer library and call convertXHtmlToWikiMarkup method for the object.
I am planning to go with last one, but had no time to proof it is working yet.
Hope it helped, let me know in case of success. Facing very same issue.
Cheers, Tom, Czechia
My first suggestion would have been to update the field configuration to ensure it's a wiki rendering, but you have done that already.
Have you tried clearing the formatting on the insight object attribute? Copy and paste it to notepad.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.