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 https://jira.atlassian.com/browse/JRA-34521 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

244 views 1 18
Join discussion

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