Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Scriptrunner condition with URL

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.
Apr 19, 2022

Hello Community.


I have made a web panel that i need to show via fragments only in the "Portals" page in JSM.

Only in this page: https://myjira/servicedesk/customer/portals


I found a condition which is almost ok:


!binding.variables.get("portal") && !binding.variables.get("request")

Unfortunately, this is not working all the time.

In some cases, my panel appears also in other pages.


So I was thinking: what about setting a condition with the URL?

If URL =  myjira/servicedesk/customer/portals then show fragment.


Unfortunately I have not found a way to do this so far, despite going through groovy documentation and trying.


Anyone did this already and knows how to?






2 answers

1 accepted

0 votes
Answer accepted
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.
Apr 22, 2022

You should be able to access to URL with


Thank you Peter! I was also in contact with some other expert from Adaptavist and they suggested a similar solution but still we were not able to implement it.

However we found a cool workaround with a little piece of JavaScript .

I will accept your answer because also according Adaptavist it works, even if I was not able to apply it to my particular situation. Thanks a lot for your time! 



I added a css class to my root html tag , say "test"

I added 2 more fragments "servicedesk.portal.footer.create_request" and "servicedesk.portal.footer.portal." where I set a the css class "test" to "display:none"

That did the trick!

the "binding" solution provide earlier did not work consistently either.

fyi: "jiraHelper" is not recognized in the conditions

Suggest an answer

Log in or Sign up to answer