The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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