Editing code through announcement banner

I am trying to change some UI by using HTML, CSS, and JavaScript in the announcement banner. For example, I will use firefox's firebug tool to look at specific tags and id's in objects and then adding my own code to manipulate it through the announcement banner.

I have a question regarding variable names. I am using javascript to hide some text (for example) from everyone else but system administrators. I can't figure out what the variable name is that stores the roles of the users. Does anyone here know what it is or where I may be able to find it?

<script>

if( variable != admin status) {

.....hide text...

}

</script>

 

Also, does anyone know if customer portal can be edited through the same method of adding code to the announcement banner?

1 answer

1 accepted

1 vote
Boris Berenberg Community Champion Oct 06, 2014

Editing the announcement banner does affect the customer portal. There is no variable that holds a user's roles. You may be able to work around this by looking for elements that exist only for users with Admin privileges. Take a look at the upper right portion of the UI and see if maybe you can get the Admin links id or something along those lines to act as a marker for yourself.

Thank you Boris. I will try that and see if I can get it to work. With multiple service desks there are multiple customer portals. Since we cannot edit the customer portal code directly, is there a page that shows users the list of all customer portals that are available? The Designing Customer Portal documentation states tha the proper url is: http://<computer_name_or_IP_address>:<HTTP_port_number>/jira/servicedesk/customer/portals but this link is broken when i try to access it. Has the link been changed? I would like a centralized page where end users would be able to jump from customer portal to customer portal as they see fit.

Boris Berenberg Community Champion Oct 07, 2014

That URL is correct if you are on version 2.0+ of JIRA Service Desk

Okay thanks. Is there a way to configure the end user portal so that after clicking on a customer portal you have a link that takes you back to the jira service desk page with all the service desks?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

494 views 2 5
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