Forums

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

Can I add a script as a form for automation action?

Diana Viktorova January 22, 2025

Hi Team,

I have one question and I hope someone can give me advice on how can I poke further. I need to run a script as part of remediation in Jira. So, can I use the automation rules to trigger script running by attaching the script itself as a form? 

Thanks in advance.

 

 

Greetings

3 answers

2 accepted

4 votes
Answer accepted
Mikael Sandberg
Community Champion
January 22, 2025

Hi @Diana Viktorova,

Welcome to Atlassian Community!

The only way to run scripts from an automation would be if you can access the script via a web request. Automations cannot run scripts that are added as an attachment. 

Diana Viktorova January 22, 2025

Thank you Mikael

Like • Mikael Sandberg likes this
3 votes
Answer accepted
Marcos Defina
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.
January 22, 2025

Jira Automations doesn't support attaching scripts per se, but you can accomplish quite a lot with ScriptRunner: Start scripting in ScriptRunner.

They accept Groovy and Typescript as language, and can achieve almost everything you can think of in Jira.

Not Turing complete, but within Jira context, almost there.

Diana Viktorova January 22, 2025

Thank you Marcos.

Like • Marcos Defina likes this
2 votes
Joseph Chung Yin
Community Champion
January 22, 2025

@Diana Viktorova 

Welcome to the community.  I agreed with @Mikael Sandberg suggestion.  You can design a process where you can use Automation setup to trigger an action "Send web request" based on certain issue events.  On your web request target application to process the issue json payload body, and then use REST APIs in your target application to process the payload and then execute your script in mind to conduct issue management process as needed.

Hope this also helps.

Best, Joseph Chung Yin

Suggest an answer

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

Atlassian Community Events