We recently installed Service Desk and have noticed that some programmatic access is breaking because REST endpoints, e.g.:
/rest/api/2/search
sometimes redirect (302) to
/servicedesk/customer/portals
Why does this happen and can it be prevented?
If this only happens when the REST API call is authenticated with unlicensed JSD customer then this is a known issue: https://jira.atlassian.com/browse/JSD-1640. A fix is currently in development.
Edit:
My answer above is slightly misleading. Unlicensed (aka external) JSD customers are free, hence we have to restrict what paths are available. At the moment we've decided free customer should not be able to use JIRA REST API (even those available to anonymous), because we're restricting by the path prefix /rest/api/2/...
For this scenario, you can work around it by not authenticating the REST call with any user.
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.