Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I use arguments in as script for the OEC

I am writing a powershell script to be called by the OEC.   In the config.yml file, I see the globalArgs line, but I dont know if these are specified by me, or is there a set of acceptable terms.  How are these arguments then accessed within my powershell script?  Finally, is there anything I need to configure in the tool, on the OEC integration page?

1 answer

0 votes

Hi Connor,


Sorry for the delayed response, firstly I should mention that passing args is not the optimal way to pass data from OEC to the PowerShell scripts, rather use "globalFlags" to declare key value pairs that are passed to PowerShell as named parameters with corresponding values.


Here is an example of how to set 3 parameters in config.yml:


apiKey: xxxxx-xxxxxxxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxx
logLevel: debug
parameter1: value1
parameter2: value2
parameter3: value3


Here is an example of how to use these parameters in PowerShell:



echo $parameter1
echo $parameter2
echo $parameter3

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

214 views 1 6
Read article

Atlassian Community Events