Custom CSS styling for individual JIRA projects

I’m wondering if there’s a way to apply custom CSS styles to specific JIRA projects instead of using the global theme.

My use case is that I want to embed project Y in an iframe on another website. For this embedded view, I need to remove certain UI elements like the main logo and navigation toolbar. This would only apply to certain user roles since they just need read-only access to the issues.

I know this would require custom development work, possibly using the REST API or other integration methods. Are there any existing templates or layouts available for the default issue display pages that I could modify?

Any suggestions would be helpful!

check out JIRA’s context parameters - you can add ?decorator=none to the URL to remove navigation elements. pair it with user-specific stylesheets through a plugin and you’ll get what you’re after. just heads up, iframe embedding can be tricky with cross-origin policies, so test everything thoroughly.

I’ve dealt with this before - try creating a custom velocity template for the issue view. JIRA lets you override the default layout templates, and you can load different CSS files based on project keys or user groups. I’ve used the project.key variable in velocity templates to target specific projects with good results. You could also use JIRA’s web panels API to inject custom CSS when certain conditions are met. Template files are usually in the WEB-INF/classes/templates directory for server modifications. Just backup everything first - template changes can mess with system stability during upgrades.

ScriptRunner for JIRA works great for custom styles on specific projects. You can build web fragments that hide elements based on user roles and projects - perfect for your iframe setup. Also try the ‘word’ view parameter since it’s a cleaner, simplified view that’s easier to control in embeds. Keep your CSS changes simple though, or you’ll run into issues when JIRA updates.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.