You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?
You should be able to access to URL with
jiraHelper.request.requestURI
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!
Mirco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.