Looking for a script to modify global automation

Abdullah Mohammed
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!
March 12, 2025

I was wondering if there is a way to modify the scopes of a large amount of global automations using a script. Couldn't see anything in the Jira docs or HAPI docs for ScriptRunner. 

1 answer

1 vote
Bill Sheboy
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 12, 2025

Hi @Abdullah Mohammed -- Welcome to the Atlassian Community!

Are you asking about Atlassian Automation rules?  If so...

I do not believe that is possible with built-in features as there is no public REST API for rules yet.  Here is the suggestion to add that capability: https://jira.atlassian.com/browse/AUTO-51

 

I have not tried this, but a possible workaround to try would be:

  • export your rules of interest
  • review the ruleScope and ruleHome in the JSON to identify the value(s) needed
  • import the rules again

One challenge with this approach is it will import the rules as copies with new names, such as "Copy of...".  I recommend fully testing in another site before trying this approach.

 

Kind regards,
Bill

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