Servlet Not rendering velocity page for Customer access User

We have developed a plugin to enable users to raise Delegation Requests. Within the Customer Portal, under the Profile section, we have added a “Delegation” button. When a user clicks this button, it invokes the portalDelegationServlet using the following link:

/plugins/servlet/portaldelegationservlet

Currently, this functionality is working as expected for users who have both Agent and Customer access. In these cases, the user is successfully redirected to the Velocity page, where they can create a Delegation Request.

However, for users who have only Customer access, clicking the “Delegation” button redirects them back to the Customer Portal instead of the intended page. As a result, these users are unable to raise Delegation Requests.

We would like users with Customer-only access to also be able to raise Delegation Requests. Kindly assist us in identifying the root cause and provide a suitable resolution for this issue.

Please review Servlet plugin modules and https://developer.atlassian.com/platform/marketplace/dc-apps-platform-7-preparing-for-secure-endpoints/. Specifically the @UnlicensedSiteAccess annotation.

Hi Steve Behnke

Thank you for your answer and documentation. Currently, we are using Jira 9.4.2 and JSM v5.4.2. Will the annotation work for these versions?