Is it possible to apply text formatting (bold, italics) to JIRA issue title field? Is it perhaps possible to do it with a custom plug-in? I'm talking about bolding selected words in the title.
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.
<script type="text/javascript">
(function($){ jQuery(document).ready(function($){
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";
$(function(){
});
}); })(jQuery);
(AJS.$);
</script>
Hi Georges. Do I understand correctly that this would only work if I'm displaying the issue summary within the confines of the announcement banner? My ultimate goal is to format the issue titles in the Backlog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Arturas Rimkus,
Unfortunately no text field can have different formatting in the database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
2) I'm out of my depth with javascript there, as I tend to avoid it. I am pretty sure you can do it, but the script and output could be quite complex. You'll need to be transforming something like "We like kittens" into "We <tags to separate words> like <more tags> kittens" and set the surrounding style and the style inside the tags.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Arturas Rimkus,
1)Nothing will be displayed in the announcement banner.
2)I am not a Javascript expert so I don't know if you can apply a styling to a string. But I doubt it could be done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you both, you gave me a good starting point, I will investigate further.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, the summary is a plain text field, it has no rendering capabilities.
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.