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?
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
Please let me know if you have any further questions.
As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot