Hello,
I have a calculated text field that is primarily used when a filter is exported from Jira to Excel for offline usage.
I have used "s.append ("< strong>")" and "s.append ("< /strong>")" and also tried it with "s.append ("< b")" and "s.append ("< /b>")". Both options do turn that portion of my calculated text bold in my webbrowser, but when I export it to Excel, it shows the tags as text.
what should I do in order to show this bold in the exported Excel?
Thank you,
Wouter
Unfortunately, Excel imports CSV as text only. To my knowledge, you cannot forward any formatting on to Excel this way.
Hello David,
Thanks for your quick reply.
Agreed, but the JIRA export is in the .xls format. When I open this file in for instance Notepad++ and edit the content with < strong> and < /strong>, it does show correct in Excel. So for some reason, JIRA is not including the format in the export it creates. It does however include formatting in other cells, like the headers.
I find it strange, since "\n" for a line break does work in the XLS export, but is not shown in JIRA.
Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure I understand. After exporting to Excel, did you try opening the resulting file in Notepad++? What is it showing where <strong> should be? Initially, you said the tag is shown as text in Excel, and then you said the tags are removed from the XLS export?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let me clarify: your questions are pushing me in the right direction I think :-) :
The text that is exported in bold to Excel by default (for instance in the header: "Displaying x issues...":
So: if we can get "<" into the export instead of "<", I think it should work.
(I only added the spaces here for visibility)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The thing is, this is the standard behavior of the Excel export in JIRA. JIRA escapes all HTML tags for security reasons.
You will need to unescape the tags as a post-process on the exported file, before you feed it into Excel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that's unfortunate :-).
Thanks for your time to look into this.
Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.