Hi Atlassian community,
I am looking for a script that will allow to copy components from parent issue using scriptrunner, but add components, not overwrite. Components should be copied at the creating stage of a given issue
e.g.
1.if the new issue is "Task", the parent is "Epic" from the "Epic Link" field
2. if the new issue is "Sub-task" then the parent is "Task"
3. if the new issue is "epic" it shouldn't copy anything
Someone something?