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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.