When a specific transition is executed I have a Postfunction, that will Clone the isse to a different Project, change issuetype and link the issue to the original one. For that I am using the Scriptrunner Postfunction, "Clones an issue and Links" - This work as intended..
During the cloning, I also need to set a specific Account for the Target issue.
The "Set Custom Field" example (See image) provided in the post function does not work as I am trying to set a string Value in a Custom field that accepts an Account Object. Therefore I need to create an Account object before.
My programming skills are far from sufficient, so I'm hoping that someone can help me writing the script to add to the Additional issue action section.
Postfunction_CloneAndUpdateAccountOnTargetIssue.PNG