Is there any CSS class that is visible only when you are inside the admin interface?

I am trying to find a workaround fix for and show some part of the custom field decription only in the admin interface by using CSS.

Now the problem is if there is ame existing CSS class that I can use for this.... or how to create one and inject it.

Note, I woudl prefer something else than the announcement banners as I do have to disable them quite ofter due to interaction bugs with other parts of Jira. Obviously I do not want to start seein the full decription field on the user-UI suddenly.

Otherwise, it could be acceptable if the description is hidden by default, without any css tricks.

I know that the full text will still be visible in the source HTML but that's not a problem.

2 answers

Why you don't write a little plugin which includes a css file? You will only have to set the context param for the webressource to sth like alt_admin

I would prefer not to write any Jira plugin and, if possible to find another alternative that is easier to maintain. I don't want to recompile the new plugin for each major upgrade of Jira. Now the API is already reaching generation 3 of plugins. It would add another thing to keep track of.... still if nobody has an alternative or already made plugin that can provide this, i will have to accept this answer ;) Thank you.

The only alternative that I can think of is to use a special customFieldType which is implemented to show the field only to admins (which is also safer than only css hidding). But this have to be implemented in a plugin again. Sorry that I can't provide you a better answer.

If you at that point, feel free to contact me about custom plugin development as a service.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,110 views 0 8
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you