Hi! I am new at JIRA-plugins and have next issue:
For example, service-desk plugin has domain support.companyname.com, when user opens this link, he sees custom service desk. When he clicks some request link - redirect to to native request form happened(url now is support.companyname.com/servicedesk/customer/portal/6/create/50). From this moment, user is on native service desk, and when he presses "Help Center" link - he's redirected to native service-desk, but I want that link to redirect back to custom plugin.
I thought about two solutions:
1. inject .js script, that will change <a> tag src attribute - at this moment I didn't find any opportunities how to realize script injection inside native service desk pages;
2. not use native links at all, and render all stuff by plugin itself, login form renders this way into .vm template -
ServiceDesk.Templates.Customer.loginForm(data)
Method above returns html of login page, I tried to find full list of available api, but to my surprise I didn't find it.
First option seems more attractive, because It is only needed to change main service desk face, the rest of native functionality are fine.
Will be glad to any help, especially references to docs.
If anyone faces this problem, it is possible to just include script to all pages - https://community.atlassian.com/t5/Jira-Service-Desk-questions/How-to-load-JavaScript-web-resource-in-JSD-customer-portal/qaq-p/462292
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.