Forums

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

Scriptrunner job - Is it possible to run a job sending external parameters?

YoSebi
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!
August 6, 2020

Hi.

I have several Scriptrunner jobs which call to the some groovy program with diferrent initial code, so I have to copy-paste the some program and change this parameter.

Is there any way to pass a parameter in the configuration of the job in order to re-use the same program?.

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Champion
August 6, 2020

Hi @YoSebi ,

please look at the Dynamic Forms - I believe it could be used in your case, but to be honest, I didn't try this functionality yet.

YoSebi
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!
August 6, 2020

Thanks.

It works perfectly when you are using code directly.

Unfortunatelly, if you have a file stored in the server, it doesn´t show the parameters configuration, so you have to maintain the same code in different places, losing the adventage of centralizing the maintenance in a single point.

It´s a pitty

Suggest an answer

Log in or Sign up to answer