I would like to set fields to different values in a Scriptrunner custom script if this create is the result of a cloning. Also, how can I access the fields of the cloned issue?
Hi Sandor,
There will be nothing special to the issue that will be created via a clone issue and link post function.
What you can do tho, in order to recognize it, is to set the summary of the cloned issue into something like Cloned <and a summary> or add a label to the cloned issue - in that case you have to make use of the doAfterCreate closure in the additional actions field of your Clone issue post function.
Regarding your second question, how to access the fields of the cloned issue, if you create a custom post function and place it after the create issue step then you can get the summary of the new issue like
issue.summary
Please let me know if you have any further questions.
regards, Thanos
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.