Dear Sir/Madam
May I know it's possible that copy field value from issue to create sub-task automatically?
As example on below screenshots: Department in issue is Team 10, and I wish Team 10 can copy to Create Sub-Task screen.
Ken
@Ken Loh -
In the automation rule, you will need to update the Edit Issue action as follow -
1) Click on the "..." icon and select Copy from option.
2) Once it is done, click in the "Copy xxx from Current issue" box and change the Current issue to Parent issue.-
Afterward, save the automation rule and publish it. You are all set. Please note that in my example, I was copying the Due Date field from Parent to the Subtask. In addition, you want to make sure the your Department field custom dropdown option context is also applicable for the Subtask issue type in your project.
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
Dear Joseph
Thank you for your replied. For trigger, I have selected "Created Subtasks (Field)", may I know is this the correct setting?
Ken
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ken Loh -
The triggering event is not correct, you should use issue created event and add the condition to see if the issue type is a subtask or not. If so, then update the subtask's department field by copying it from the parent issue.
Another thing, your field "Create Subtasks" seems to be a custom field that your admin created and it is not a default out of the box setup.
Hope this helps.
Best, Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Joseph. Is there a way to copy field value during the sub task creation, not after created? Because currently the field is required, we need to select the value before create it. And we would like to copy it automatically, no need to select it manually.
Ken
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ken Loh -
What you need to do then to make the field for subtask (optional) and then just use the automation rule to populate the field since you always want the field to pull (copy from) from the parent issue.
In addition, you should also remove the field out from the Create Issue screen for the subtask issue type. Again, the field will always be get its value from the parent issue.
Hope this helps.
Best, Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Ken Loh ,
I noticed you have Jira Service Management Server - if you have the Automation for Jira application installed on your instance, you can copy the value using an automation rule.
Similarly, if you have a scripting application already installed (Scriptrunner, PowerScripts, etc), you can write a custom script that triggers whenever a sub-task is created or something along those lines.
If neither of these applications are already installed on your Server environment, you'll have to move to Data Center first and then purchase one of these applications, as you are no longer to purchase applications for the Server environment.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sam Nadarajan
Thank you for your replied, yes, I have project automation on project settings.
However, there is only "create sub task" in new action.
Ken
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying! It's good that you have Automation.
You can't copy the value from the parent issue into the sub-task issue when you launch the Create Issue screen - you would need Scriptrunner Behaviours for that.
However, you can update the Department field after the sub-task is created with the value from the Parent ticket using an automation rule that looks similar to below:
For the Action, select "Edit Issue" instead of "Create Sub-Task." In the Edit Issue, select your Department field. Then click the triple dots on the right side and select "Copy" and then select "Parent Issue".
Hope this Helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sam Nadarajan
I have similar issue but different custom field (Quote price - text field).
Can you please share the executable code for script runner behavior ?
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.