Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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?
Hi @Piotr Nowak
afraid i cant help with writing a script but if you have JSU Automation, you can add the below post function;
Copy Value From Other Field (JSU) | Copies the value of one field to another, either within the same issue or between related issues (as issue link, Parent/Sub-Task, Epic/issues in Epic or found by JQL). |
I use JSU a lot as it provides us with lots of valuable extras to make life a little easier!
if you don't have JSU, i'm sure someone will be able to comment and help you with a script
good luck
Thanks
Ally
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Piotr Nowak ,
This can help to achieve this
https://library.adaptavist.com/entity/copy-field-value-from-parent-issue-to-sub-task-upon-creation
You may need little tweaking of the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.