First let me apologize as I am new to the JIRA administration side of things but I am still reading and learning.
So as part of our workflow we have a Post-Function transition that "Clones an issue and links it back to the original issue using the "Script Post-Function [ScriptRunner]". This is used to copy customer entered issue from their project to the development team project to be worked.
For example:
Customer project Issue is AAC-#### which then clones to the Development Team project as issue AAD-#### when approved by the project manager.
So in the parameters to this Post-Function step it has the "Target Project" selected as the AAD project. It also has a list of specific "Fields to copy" selected as well to be copied to the new issue number under the Target project.
What I am wondering is if there were a script that could be written to do the same thing but expanded to handle multiple projects .
So that with multiple customers it could be set up with one workflow instead of having to maintain a workflow for each new customer brought on board since this step is currently limited to be from one project to another specifically.
For example:
AAC would clone to AAD
BBC would clone to BBD
CCC would clone to CCD
That way each customer project would clone their issue request over into the related development project based on the Customer project.