My issue screen has two tabs. I'd like to add a banner or a prominent reminder message that always shows on one of the tabs.
If not possible on the tab, then on the whole issue screen.
But I don;t want this to be a Global thing for all projects. Only for a specific project.
Thanks!
Ok, well you could create a text based custom field (free text or <255 characters) and set it to a default value with your message. You could restrict the scope of the context to the one project, or even have different messages per project...
Put the custom field as the top entry on the edit screen, then use the Behaviours plugin to make the field read only at all times.
https://studio.plugins.atlassian.com/wiki/display/JBHV/JIRA+Behaviours+Plugin
Of if you don't want to install a plugin, you could put some Javascript in the description of your custom field that always disabled the field to make it impossible to update.
It's not perfect, but I don't think there are any places to inject a template into the edit screen. If it was the Issue VIEW screen then you could have written a small plugin that used Web Fragments
https://developer.atlassian.com/display/JIRADEV/Web+Fragments
Thanks. I like the Custom Field approach with no plugin. Is there a way to format the text though? Jira says that you can use HTML to format, but that doesn't work because they escape all HTML content in fields. Also, are there any examples of using javascript in the field descriptions??
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.
YES!! Got it!
<script type="text/javascript">
var el = document.getElementById("customfield_10653");
var labels = document.getElementsByTagName('LABEL');
for (var i = 0; i < labels.length; i++) {
if (labels[i].htmlFor != '') {
var elem = document.getElementById(labels[i].htmlFor);
if (elem)
elem.label = labels[i];
}
}
document.getElementById("customfield_10653").label.innerHTML = "";
el.disabled="true";
el.style.fontSize = "15px";
el.style.backgroundColor = "AliceBlue ";
el.style.color = "Blue";
el.style.fontWeight = "bold";
</script>
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.
I mean the Edit View of the issue has a second tab that I've added with other fields, custom and standard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you say your issue screen has two tabs, do you mean in the custom field data section? The section above description?
Or do you mean the tabs at the bottom of the screen (Comments, Change History...)
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.