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.
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.