Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Rest Endpoint Inline script location on filesystem

Eduard Anhalt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2022

Hello, 

 

i created a new custom Rest endpoint in the UI but the current script is causing errors.

 

All custom endpoints stopped working with an Error: <status-code>500</status-code>

also the Listing of Custom Rest endpoints (and therefore the editor for the inline scripts) is not loading anymore. 

 

here: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Remove-manually-a-scriptrunner-REST-Endpoint/qaq-p/868872 it is described how to delete a script via rest api but i am struggeling to find the script Id,

so main question for now: are these inline scripts accessible on command line on the linux machine? they are not located in the script root : (sfs/jira/scripts)

Thanks,

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 20, 2022

Welcome to the Atlassian Community!

There are two ways to store your own scripts in Scriptrunner - you can:

  • Write them as plain text files, stored in whatever directory structure you like under a scripts directory in the home directory of the application
  • Write them "inline".  SR stores these in active objects tables (still as plain text, but in blob fields in the database)

Scripts can not be run outside Jira/Confluence/Bitbucket - they use the context in which they are running to do things.

TAGS
AUG Leaders

Atlassian Community Events