Forums

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

Creating ENTRA-Groups with Scriptrunner for JIRA

Atlassianist
Contributor
March 24, 2025

Hello, 

 

we are trying to automate our JIRA / Confluence workflow. (DataCenter)

Services to be automated:

1. Copy an existing JIRA template and create a new project

2. create a new Comfluence Space 

etc. 

as we use ENTRA Groups for permission management, the same groovy script has to trigger a powershell script and forward some variable to it.

This 2nd Powershell Script has to connect via MS Graph and create the groups. 

I think with this script we can make execute the PS-Script at the and of the Groovy Script. 

 

def issueKey = issue.key 
def customFieldValue = issue.getCustomFieldValue(customField)
def command = "powershell.exe -ExecutionPolicy Bypass -File 
C:\\Scripts\\meinSkript.ps1 ${issueKey} '${customFieldValue}'" 
def process = command.execute() 
process.waitFor() 
def output = process.text 
log.info("PowerShell Output: $output")

Question:

Is is technically a viable way to work or are there better options to create groups - via Scriptrunner for JIRA - in M$ ENTRA?

 

Best regards

Atlassianist. 

//Sorry, we are working on DataCenter. The Category of the thread is not correct//

 

0 answers

Suggest an answer

Log in or Sign up to answer