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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,232
Community Members
 
Community Events
184
Community Groups

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

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.
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

0 votes
Jean-Théo [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 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.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

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