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)
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs