Hi @Arturas Rimkus,
Actually you can do it by adding the following in the announcement banner. This script changes the font, set it as bold and italic. You can change it as you like.
document.getElementById("summary-val").style.fontFamily = "'Times New Roman', Times, serif";
document.getElementById("summary-val").style.fontWeight = "900";
document.getElementById("summary-val").style.fontStyle = "italic";
That trick is only going to format the summary in places where it is exposed in a style tagged as the summary-val - it'll happen in some places but not all of them (because it's wrapped in different tags in some places) and it's not formatting part of the summary, it's the whole string.
A couple of questions. (1) Would an announcement banner need to be displayed on the page if I wanted to run this script? (2) This script finds element by id and styles it. Can I also search for a specific string in issue titles and then apply the bold style to it if I find it?
1) No, you don't have to put anything in the banner that is visible to the user. The banner in JIRA is always there, but when it's empty, there's nothing for the browser to do, so nothing really appears. If you put a script in it, then it'll run the script, not display it (assuming the tags are right, so the browser knows to run it. You should be able to literally paste in Georges' script as it's spot on)
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot