You may have created a Rest Endpoint that had some code in it which then caused the rest endpoints page to fail to load.
We are working on handling this better. However, we understand that you may know which rest endpoint caused the problem and you just want to delete that rest endpoint so you can get back into the rest endpoints administration page.
Note: For support to tell you why the failure happened in the first place we would like you to send us the script that causes the problem so we can reproduce the issue.
Step 1: Get your rest endpoints data
First, we need to find the ID of the broken Endpoint. (I am assuming you will know the fragment that broke it by referring to the fragments script content. If you do not then please contact support.)
Run this script from the script console. (If it does not work please contact support and we can troubleshoot further):
Get Rest Endpoints
Step 2: Find the broken endpoint by ID
Now we need to identify the ID of the broken script from the output
This is an example output for 2 rest endpoints:
(Keep a copy of your version of the above in case you delete the wrong one)
Each rest endpoint will have a "FIELD_SCRIPT_FILE_OR_SCRIPT" section and in this section, there will be a "script" section which contains your rest endpoints inline code if you are using inline code. You will need to review the "script" section to find the broken rest endpoint.
Once you have found the broken endpoint, look for the "id" element above the "FIELD_SCRIPT_FILE_OR_SCRIPT" section. For example, in the above output, the id "99048e03-21b8-4109-bbe9-94fc9324592b" is for my first rest endpoint that outputs abc:42
I am going to delete my endpoint with the ID "99048e03-21b8-4109-bbe9-94fc9324592b"
Step 3: Deleting the Rest Endpoint
Open your terminal or application that lets you run CURL requests.
Run this command to delete the problem endpoint (replace the <AdminUser>, <AdminPassword> and <ID_OF_YOUR_ENDPOINT> with the values specific to your environment):
After running the above go back to your Jira user interface, clear the browser cache and then reload the Rest Endpoints page.
If you deleted the endpoint it should not show anymore and the first script should also not return any information on the deleted endpoint.