Quite simply, for those that have experimented with changing the look and feel of JIRA server, is there any HTML, XML, or other file that can be edited on the server (in the home or installation directory I presume) to edit or add to the displayed text on any project administration Versions page?
The text currently reads, "For software projects, JIRA allows you to track different versions, e.g. 1.0, 2.0. Issues can be assigned to versions." However, as I debate alternative solutions to my other questions such as https://answers.atlassian.com/questions/44220923, I look into fixing usability issues in bandaid-like solutions to our program's needs and in this case could benefit from editing what help / instructive text is displayed on this particular JIRA webpage.
I've actually edited quite a few server files before such as changing the order that Issue toolbar buttons like Link and Move are displayed, changing description text of system fields like Linked Issues, etc so I'm aware of what precautions lie in tinkering and also that they'll be lost on application upgrade.
> OR is there any javascript I could add to say the Announcement Banner
Actually you answered your question.and banner JS is better than changing JIRA sources. Sample for you to change versions text:
jQuery("#project-config-webpanel-summary-versions .project-config-webpanel-help p").text("Hello there!");
I tried to put that, wrapped in the script tags, into the Announcement Banner but I cannot see that text showing up anywhere on a Project's Versions page or any page rather? Have you tested it on your system by any chance? Also, we're on JIRA 7.1.9 server right now
<script type="text/javascript">
jQuery("#project-config-webpanel-summary-versions .project-config-webpanel-help p").text("Hello there!");
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, I tested under JIRA 7.0.5.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you put your line into the announcement banner with the same tags as I commented? Wondering why it wont' work for me (trying to understand some of the web fragments code, but not familiar with it).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, I put it as
<script>jQuery(
"#project-config-webpanel-summary-versions .project-config-webpanel-help p"
).text(
"Hello there!"
);
</script>
Probably different css class or html structure for your JIRA version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, i'm testing it on our development instance which is still at 7.0.10 which shouldn't have changed from your 7.0.5. But i'll keep trying to look into understanding it and figuring out why it's not working.
To confirm, this would be showing up in the Admin settings > Versions page right? where exactly on the page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Geoff,
I checked it once more with JIRA 7.0.10 and found that script is executed before the content is loaded so it's needed to be wrapped in "toInit" JS. Here is working version tested with 7.0.10:
<script> AJS.toInit(function($) { require([ 'jquery' ], function($) { $("#project-config-webpanel-summary-versions .project-config-webpanel-help p").text("Hello there!"); }); }); </script>
Here is the page were I outlined the jQuery selectors so you can copy the approach for different locations. Notice that ids are prefixed with "#", classes with "." and tags are put straight. It's quite simple and you can google jQuery selectors if you need more sophisticated way to find/replace a content:
image2016-11-19 17:28:53.png
The announcement banner looks like this:
image2016-11-19 17:30:6.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update: Adding content to the announcement banner actually shows it and in case of script it's en empty line. In case you do not want the empty announcement banner you can add scc to hide it right below the script:
<script> AJS.toInit(function($) { require([ 'jquery' ], function($) { $("#project-config-webpanel-summary-versions .project-config-webpanel-help p").text("Hello there!"); }); }); </script> <style> #announcement-banner { display: none; } </style>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for all of these very detailed answers. With this latest script, I can see the Hello There as the only text below the Versions section title on the Project's Summary page. I'll start with this and look into how to get the text also on the actual Version's page (not just summary).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OR is there any javascript I could add to say the Announcement Banner that'll show any new desired text on the Versions page when that particular page is opened?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!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.