Remove manually a scriptrunner REST Endpoint

Claudio Signorini August 16, 2018

Hi!

I have some scriptrunner REST Endpoints that I cannot remove becose the ui button does not work.

Is there a way to remove them manually?

Thanks

Claudio

3 answers

1 accepted

1 vote
Answer accepted
Claudio Signorini August 16, 2018

I've found a REST call to remove the script:

DELETE https://<jira-baseurl>/rest/scriptrunner/latest/custom/customadmin/<script-id>

The script-id is found in the DOM tree of the REST Endpoint page.

Claudio

0 votes
Peter-Dave Sheehan
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 Leaders.
October 20, 2022

I know you found a solution with the API, but in case anyone else is looking for where those in-line scripts are...

All "in-line" scripts are stored in the db somewhere.

  • Workflow in-line scripts are stored in the workflow XML
  • Jobs and Fragments in-line scripts are stored in AO_4B00E6_STASH_SETTINGS
  • Behaviours, Script fields, Listeners and Rest endpoints are stored in propertyentry/propertytext under one of the following PROPERTY_KEY:
    • Behaviour: BehaviourMap and Behaviour_<id>
    • Fields: com.onresolve.jira.groovy.groovyrunner:customfields
    • Listeners: com.onresolve.jira.groovy.groovyrunner:groovyrunner
    • Rest: com.onresolve.jira.groovy.groovyrunner:rest-endpoints

So when all else fails, you could always edit the db record

0 votes
Mark Markov
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 Leaders.
August 16, 2018

Hello @Claudio Signorini

Have you tried to disable/enable Scriptrunner plugin?

Claudio Signorini August 16, 2018

Yes, but... same problem!

Claudio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events