How can I take a value generated inside of a Groovy script and pass it to another script?

Daniel H_ Fisher February 27, 2024

I have script which generates a list of users successfully with the Console window of Scriptrunner.

How do I take this list and use it in other routines, such as printouts?


1 answer

1 vote
Andrii Maliuta
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.
March 1, 2024

Hello @Daniel H_ Fisher ,

Could you please clarify what is the task?

You can create the script files and upload them to the COnfluence server so that one script would have access to other script functions (with open access). You can also reuse functions/methods in various scripts as you need.

Daniel H_ Fisher March 18, 2024

I have a variable called MyVariable, which contains a value created in a Behavior. I want to use the value in an automation rule. Conversely, if I emply MyVariable in script within an automation rule, can use it in the rule itself, but outside the script?


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events