...
- Action will be a run action, product JIRA, with the appropriate server url and credentials. This allows us to run a number of different actions to do all the thing needed. These actions are added to the Data field, one action per line.
- createIssue will be the first action
- assume the project key on the target system is the same
- Use Variable substitution to populate fields on the createIssue action from the original issue
- issue variables
- issue custom fields using setFieldValue actions for each of the custom fields
- Use addLabels action to the the label to the original issue. Other situations might use a specific custom field for this value instead.
- A second post function will be required to handle this, either using a CLI action for setFieldValue on the local system
- This is just JIRA workflow - construct the transition to go back to the same state.
...