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
Accepted answer
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
Community showcase
Published 10 hours ago in Jira Service Desk

Frequently Asked Questions for Jira Service Desk (AKA JSD FAQ)

Just the FAQs! Welcome to the Community, and this Focused-FAQ! Here, we've pulled together some of the most frequently asked questions associated with Jira Service Desk (JSD). We hope ...

40 views 0 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