Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,713
Community Members
 
Community Events
184
Community Groups

Synchronize Project components across projects.

I would like to have a parent project and when I add, update or delete a project component in that project (Call it "Project Master"), then all projects with a category of "ART Project" have the change applied to those projects also. 

I can do this with versions, but cannot see how to do this with Components.  I have ScriptRunner installed, but the Script Listeners do not appear to have events for Component.  Does anyone have any ideas of how to do this without buying a plugin, either through ScriptRunner or automation?  

I am running on Jira Cloud.  

 

Thanks

2 answers

Hi @Chris Hodgens ,

Thanks for posting your question here, I am Dhiren from the Exalate Team.

In this case I would recommend you to use a Bi-Directional integration solution like Exalate.

Exalate, provides a fully bi-directional synchronization between different projects on same or different Jira instances(Cloud, Server or even DC) that is fully customizable. It is easy to set up and Exalate uses a scripting engine which is based on Groovy scripts for ultimate flexibility and customization. 

It's possible to even sync custom fields and fields like components for a next level deep ticket integration.

Do let me know if you have any questions or concerns.

Thanks, Dhiren

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 13, 2023

Welcome to the Atlassian Community!

Almost, it's Jira that does not have component events, not SR.  SR can't respond to things that are not happening!

There are a couple of component synchroniser apps on the marketplace, and I'd actually recommend looking at them, because they do a bit more than just a sync. 

To do it in SR, I would start with a quick look through https://library.adaptavist.com/search?library-content%5Bquery%5D=component&library-content%5BrefinementList%5D%5Bplatforms%5D%5B0%5D=cloud for some example code

Thanks.  I had a quick look and could not see anything relevant through the link.  

If Jira does not have the component events, does that mean that it is not possible, or Jira does not expose the events and there is some lower level trick that needs to be done to register a listener and then link the code to the listener created?  I can see examples how to do this on server versions, but not on cloud.  

Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2023

You could come up with a script using the REST APIs which runs on a periodical basis. This could then read all components and update all other components.

In order to properly update them, you'd need to maintain some sort of mapping so that you know which components belong to each other.

Suggest an answer

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

Atlassian Community Events