Forums

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

Jira Automation Import VIA API

Hanzla Tariq
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!
November 3, 2025

Is there any way or API through which I can attach my existing automation to a Project VIA API using the project key and rule id

1 answer

2 votes
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 Champions.
November 3, 2025

Hi @Hanzla Tariq 

What problem are you trying to solve?  Knowing that may help the community to offer better suggestions.

Until we know that...

There are REST API endpoints to get, update, create rules, etc.  And so if you wanted to...

  • update the scope of a rule
    • read the existing rule with an endpoint
    • update the scope with another endpoint
  • update the spaces in the components for a rule
    • read the existing rule
    • use text functions to update the space references
    • update the rule
  • copy a rule from one space to another
    • read the existing rule
    • use text functions to change the scope and space references
    • create the new rule
  • ...

 

There are no bulk read or bulk create endpoints.  (You may bulk read the rule summaries, but must read each one to get the rule's JSON.)

 

Kind regards,
Bill

Hanzla Tariq
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!
November 4, 2025

That’s not exactly what I’m trying to do. When a new project is created using existing settings, the automations from the source project are not automatically copied over — they have to be manually linked. What I need is an API that allows me to provide the new project key and an existing automation ID, and then attach that automation to the new project programmatically.

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 Champions.
November 29, 2025

Hi @Hanzla Tariq 

There is no single REST API endpoint to do what you asked. There is an endpoint to create a rule from one of the built-in templates in a project.

The third approach I described earlier could be used to create your own service endpoint, or an automation rule, for other rule copying.  The challenge will be correctly updating the existing rule before the copy:

  • updating project references for scoping
  • updating permissions used in the rule details and actions
  • mapping and updating changes to work item types, fields, workflows, etc.
  • copying and / or replacing any saved connections at the end of the rule's JSON

 

Suggest an answer

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

Atlassian Community Events