Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scriptrunner adding web section to navigation bar

tom lister Community Leader Mar 24, 2019

Hi

I want to add menu to our navigation bar which will navigate to creating a service desk issue. I have followed the notes on creating a web section and web item using script fragments but I am not seeing a new menu item and can't see what I've missed. Anyone used script runner web fragments?

Screen shots of web section and two goes at web item...

Screenshot 2019-03-24 at 16.59.45.png

Screenshot 2019-03-24 at 17.02.35.pngScreenshot 2019-03-24 at 17.03.35.png

 

 

 

3 answers

1 accepted

1 vote
Answer accepted

Hi @tom lister 

 

I faced the same issue and I solved it by :

  1. Add a web item in the top nav. bar (Key: item.servicedesk)
  2. Add a web section in the location of the item.servicedesk (key: user.access)
  3. Add a web item in the location of the item.servicedesk/user.access
  4. Add another web item in the location of the item.servicedesk/user.access

Now, you can find what are you looking for.

 

I hope it helps.

 

Thanks,

Yehia

tom lister Community Leader Mar 24, 2020

Hi @Mohamed Yehia 

When you use item.servicedesk, where does that appear.

I was using system.top.navigation.bar to get an item on the main Jira menu bar

Tom

Hi @tom lister 

 

system.top.navigation.bar as below:

menu.PNG

 

Yehia

To use @Mohamed Yehia's example:

  1. Add a web item (Key: item.servicedesk) to system.top.navigation.bar
  2. Add a web section (Key: user.access) to item.servicedesk
    (not under system.top.navigation.bar....just directly under item.servicedesk)
  3. Add a web item (Key:option1) to item.servicedesk/user.access
  4. Add a web item (Key:option2) to item.servicedesk/user.access

Hello @tom lister

I am unable to reproduce your issue. As you can see in the following screenshot, I copied your first screenshot and the fragment appeared for me.

Screen Shot 2019-03-28 at 3.24.17 PM.png

Are you using JIRA server? Which version of JIRA are you using?

Best,

JT

tom lister Community Leader Mar 28, 2019

Hi @Jean-Théo _Adaptavist_ 

I tried this on 7.13 server on a macbook and 7.11 data centre on AWS.

I notice your field order on your config screen is different to mine.

I’ll try it again tomorrow

tom lister Community Leader Mar 28, 2019

Hi @Jean-Théo _Adaptavist_ 

also just noticed you are placing a web item on the nav bar. I was trying to put a web section on there with web items attached. I wanted a drop down menu of links. 

Is that incorrect?

tom lister Community Leader Mar 29, 2019

Hi @Jean-Théo _Adaptavist_ 

I can create a single web item that appears as a link on the nav bar.

Does scriptrunner allow me to create a drop down menu on the nav bar?

BR

Tom

tom lister Community Leader Mar 31, 2019

Hi @Jean-Théo _Adaptavist_ 

The SDK docs say, if I’m understanding correctly, that I can use a web section to create a new tab on the navigation bar.

https://developer.atlassian.com/server/jira/platform/adding-menu-items-to-jira/

Then add my web items to it. 

Creating a script fragment web section on system.top.navigation.bar doesnt appear to work

BR

Tom

I have a similar problem. I'm trying to add a web section and it doesn't show up in the menu (I tried jira.issue.tools and transitions locations). I can add web itemas wherever i want though. Im using Jira Server 7.13.1.

Like tom lister likes this
tom lister Community Leader Jun 12, 2020

Hi

This solution above worked for me

  1. Add a web item in the top nav. bar (Key: item.servicedesk)
  2. Add a web section in the location of the item.servicedesk (key: user.access)
  3. Add a web item in the location of the item.servicedesk/user.access
  4. Add another web item in the location of the item.servicedesk/user.access

adding a web item first seemed wrong but it did work, location system.top.navigation.bar

Tom

0 votes
tom lister Community Leader Apr 23, 2019

 

 

Hi

Fresh server , repeat test...

Trying to create a web-section to add a new menu drop down to navbar.

The following config has no visible effect ( although it's possible to add a new web-item but I want a drop down list of web-items).

web-section.JPG

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

157 views 1 0
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you