This documentation is just for version 6.4 or lower:
In either case, I just end up with the script block displaying in the Description area beneath the custom field in the chosen configuration, and no code gets executed. Any ideas on what might be wrong? I'd guess something in the system is set up to not render the code as code, but I'm not sure where such a thing might get configured. Any ideas would be helpful.
Well...ok then! :)
I get that they're a security issue, no argument there. Is there another mechanism to accomplish the same effect? In my specific case I want to show and hide fields based on the value selected from a custom select list.
Since posting my question I've gone into the system settings and I see that there's a value for "Enable HTML in custom field descriptions and list item values". In our case it's off, so I was thinking this might be why I'm having my problem. But it sounds from your response Nic as though this mechanism just doesn't work at all now.
Thanks for the update, I'll try to find another method to accomplish my goal.
So Custom plugin is not working.
Please suggest if you have any other solution.
Yes. Although adding .js via an add-on is a better way to do it that trying to get it into the UI directly, it is often a bad thing to do because it can easily clash with core js and break all sorts of stuff. If you must do it, have a good read of the aui guidelines and the js docs in the developer guides.
Thank you for clarification! So one more question - what would you recommend for Jira customization? I'm running an instance for 25 users and I try to avoid using multiple 3rd party add-ons, but sometimes to get what I need I have to customize. What would be the right way for that?
We use the JIRA server 7.5 version.
I'm new to JIRA customizing and have now a task to modifiy an existing multi-select-cf (plug-in). The list consists of a huge number of external values which are periodically updated. The cf is used frequently. So, thousands of values in customfieldvalue table are connected to the cf. Due to the high number of option values in the cf it's quite uncomfortable for my colleagues to use it without auto-completion.
I didn't find a way to add auto-completion until now. Maybe I still don't understand the concepts of JIRA automation enough for now. Although I tried to avoid JS-injection I now was attempted to do so...
...but reading this thread shows me that's not a good idea (as I assumed). So I'd highly appreciate your advice how to add autocompletion to the existing field without JS.
Thanks a lot in advance!
Scriptrunner includes a module called "Behaviors" which allows you to show/hide fields at will. Scriptrunner also lets you define arbitrary web resources, so you could load various JS files in certain contexts. This is only avaliable for JIRA Server.
If you use service desk, you can use Extension for Service Desk to show/hide fields on the Customer Portal.
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
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