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

Is it possible to display icon/image/avatar on Custom web item in ScriptRunner Fragments?

In Jira, after much research, I was able to add custom dropdown web item on the top navigation bar using ScriptRunner Fragments. 

Now my question: is it possible to add icon/image/avatar on the left side of the dropdown options? The dropdown options are customer service portal URLs. 

Thank you

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Peter-Dave Sheehan
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 01, 2023

Not directly out of the box.

You would need to use a separate fragment to inject some javascript (either web resource or web panel) that will modify the DOM.

It can be tricky to have the script injected at the correct time (the custom web item has to be there before the script can act on it). Unless you use some fancy js to wait for the element to appear.

Thanks for the reply. 

I did find the Web Item Provider use case, It took me a while to get the list and map to work, but I was able to create options dynamically with icons and urls.

Peter-Dave Sheehan
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 02, 2023

I had not reviewed the web item provider functionality in a long time and never used it.

But now, reviewing the documentation page, I can see that it will work better than my suggestion.

TAGS
AUG Leaders

Atlassian Community Events