Hi y'all,
I have an automation rule in which I have declared many variables using the “create variable” action. I will run a Scriptrunner script at one point in the Automation Rule. However, it is necessary that I need the variables that I have created using the action in this script.
Is there a way to do this?
Best,
Erik
Try this one
So in this case you have to change variable name initiator to {{lookupIssues}} of course
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But the script is firing as a last thing in your automation where would you like to pass your variable?. I'm not sure but i think there is no way to send a variable as smartvalue. In case you would like to read about it i will leave here link to the adaptavist documentation. https://docs.adaptavist.com/sr4js/latest/integrations/automation-for-jira/execute-a-scriptrunner-script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erik,
Please share a screenshot of your Automation configuration.
Also which ScriptRunner Automation Feature do you intend to use to get the variable?
Thank you and Kind regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
Thanks for your help!
My Automation Rule is a bit longer.
The import part is this:
I am using a "lookup Issue" Action to get a list of Jira Issues.
Therefore Jira is creating the {lookupIssues}} SmartValue / Variable.
I need this variable in a Scriptrunner Script to to process these issues further, since the Number of Issues is always different, which makes it difficult / impossible to map the process via automation. (In short, I want to dynamically create tests)
Also I am using "execute a ScriptRunner script" action for Jira Automation.
If you need more information from me, please feel free to ask!
Best,
Erik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.