This article is for Data Center. Visit Cloud
Creating a New Synchronizer
Synchronizers is an older, outdated mechanism for automation of Structure and Jira changes. It is being replaced with Generators and Effectors.
If you'd like to create your own automation, we strongly suggest using Generators and/or Effectors.
Structure comes with a number of bundled synchronizers, but you can add another synchronizer to the system, allowing Structure users to install it on structures and run export / import.
Implement StructureSynchronizer
Create your implementation of StructureSynchronizer interface. Use AbstractSynchronizer as the base class.
Define structure-synchronizer
Module
Add structure-synchronizer module to your atlassian-plugin.xml
, referring to your implementation of the StructureSynchronizer
.
Test Thoroughly
Test how your synchronizer works when other synchronizers are also installed onto the same structure.
Sample Project
This project can be used to bootstrap writing your own synchronizer. It compiles into a working plugin, which does not do anything except writing to console at the times the synchronizer would do some work.
You can download the sources zip with the sample synchronizers at API Usage Samples page.