Forums

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

When a new component is created, clone or create issue.

TechComp July 10, 2025

When a new component is created, I want the issues in any different component to be automatically create to the newly opened component by updating the component field field.

For example, I have a component called Finance 2024. I am creating a new component as Finance 2025 and I want to create same issues in Finance 2024 for Finance 2025.

How can I do this in Jira Data Center with automation or scriptrunner ?

 

 

1 answer

1 vote
Utkarsh Agarwal
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.
July 10, 2025

Hi @TechComp 

Jira Data Center does not emit any event on component creation, as components are part of project configuration. This means neither Jira automation nor ScriptRunner listeners can detect when a new component is created.

To replicate issues from an existing component (e.g., Finance 2024) to a newly created one (e.g., Finance 2025), you can probably implement a scheduled Groovy script that:

  • Periodically polls the project’s components and detects newly added ones based on a naming pattern (e.g., Finance \d{4}).
  • Identifies the previous component by sorting or regex comparison.
  • Retrieves issues using JQL (e.g., component = "Finance 2024").
  • Creates new issues with the same field values, updating the component field to point to the new one.

This is the only viable approach since no native event hook exists for component creation in Jira Data Center.

Kind Regards
Utkarsh

Suggest an answer

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

Atlassian Community Events