Forums

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

Run Powershell Scripts through JEC

Hendrik Laschka October 8, 2024

Hello,

 

I would like to run a powershell Script through an Automation using the Jira Edge Connector. Triggering the Script works fine, but I can't figure out a way to access the Payloads from the Automation.

Online I can only find Examples in Python, but those aren't really helpfull.

Did anyone already try something like this?

The final goal for the JEC-Automation would be to automatically create a User-Account in our local Active Directory, Sql-Server, etc.

Thanks in advance.

2 answers

0 votes
Dane
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!
April 2, 2025

I'm looking for the same type of help. We can trigger powershell.exe but actually invoking the script does not happen. Our "args" must be incorrect. 

Here is what is in the .json:

"actionMappings": {
"AppendTHfinds": {
"filepath": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"args": ["-Command out-file C:\\jsm\\jsm-jec\\output\\echo.log -InputObject 'hi'"],
"sourceType": "local",
"stdout": "c:\\itsoftdist\\jec-logs.log",
"stderr": "c:\\itsoftdist\\jec-err.log"
},

 

 

 

0 votes
Aderibigbe Aderoju
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!
February 17, 2025

Hello Hendrik,

Were you able to acheive your final goal for the JEC-Automation? I am just starting down this path and cannot find many success stories online, I was hoping you could shed some light. Thank you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events