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

Scriptrunner adding web section to navigation bar

Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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
Mohamed Yehia March 24, 2020

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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

Mohamed Yehia March 24, 2020

Hi @Tom Lister 

 

system.top.navigation.bar as below:

menu.PNG

 

Yehia

Timothy Ryner June 11, 2020

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
Cody Baldwin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2023

How is the first web item being set up?  I can't seem to get this solution to work. Is it only compatible with service desk?  The Web Item at the top doesn't show the the web section at all

0 votes
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 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

0 votes
Jean-Théo [Adaptavist]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2019

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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

Szymon Sieminski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2019

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 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

Dino Carreon June 15, 2021

Is there any place you can put this besides system.top.navigation.bar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events