Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to execute a jira scriptrunner script from outside jira?

I have a script in scriptrunner in Jira, that I can execute in the console correctly.

 

Is it possible to somehow execute that script from outside Jira, for example from Bamboo?

1 answer

Hi @Ricardo Martinez yeah you can execute scripts which are stored on Jira Server via REST API. It is described here:

https://scriptrunner.adaptavist.com/5.6.8/jira/builtin-scripts.html

In section Executing Script Console Scripts Remotely

Thanks Martin.

Its exactly what I was looking for.

 

And i have it working now!  ;)
like this:

curl -u admin:admin -X POST "http://<jira>/jira/rest/scriptrunner/latest/user/exec/" -H "X-Atlassian-token: no-check" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Accept: application/json" --data-urlencode "scriptFile=foo/bar.groovy"


Do you know how can I send an argument to the script with the previous command?

Hi @Ricardo Martinez , sorry. I do not know how to pass parameters :(

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you