Synchronize Project components across projects.

Chris Hodgens May 12, 2023

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

0 votes
Dhiren Notani_Exalate_
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.
May 19, 2023

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

Chris Hodgens May 16, 2023

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