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