Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can the child ticket have details copied from parent

Alexis Gutierrez January 4, 2023

Hi everyone, 

I am creating children tickets and not sure how to have the details copied from the parent to the child. For example, I have a parent ticket that has the details on the right hand side, it shows that the billing account is XXX and when I create the child ticket the billing account area is blank. Is there a way to have that info copied from the parent to the child? 

Thank you for your help!

2 answers

1 vote
Mark Segall
Community Champion
January 4, 2023

Hi @Alexis Gutierrez - When you say "children tickets" are you referring to sub-tasks or more of a link between two issues?  This will help in establishing the right solution.

Alexis Gutierrez January 4, 2023

Yes, the child tickets are sub-task of Tasks.

Mark Segall
Community Champion
January 4, 2023

This is possible with automation.  You just need to establish a trigger.  For example, you could have something like this:

  • TRIGGER: Issue Created
  • CONDITION: Issue Type = Sub-Task
  • ACTION:
    • Edit Issue (Billing Account)
    • {{issue.parent.Billing Account}}

NOTE - I'm assuming the field name is Billing Account.  Change accordingly.

You can also create a similar automation rule that updates all sub-tasks when the billing account changes on the parent:

  • TRIGGER: Field Value Changed (Billing Account)
  • BRANCH (Sub-Tasks)
    • Edit Issue (Billing Account)
    • {{triggerIssue.Billing Account}}
Alexis Gutierrez January 4, 2023

Is there any way to have all the details copied or I need to do this one by one?

Mark Segall
Community Champion
January 4, 2023

You would need to manually add all of the desired fields you want copied to your sub-task, but it's a one-time configuration and then it'll just work from then on.

Alexis Gutierrez January 4, 2023

I tried what you have above but it failed creating the task at all. The tasks have already been created. We doubled back to add sub task to these tasks. I noticed the detail information was not moving over to the sub task. But with this rule above I was not able to create a normal Task.

image.png

Mark Segall
Community Champion
January 4, 2023

You shouldn't need JSON.  Can you please share a screenshot of the Edit Issue Action?

Alexis Gutierrez January 5, 2023

image.png

Mark Segall
Community Champion
January 5, 2023

In the "Choose fields to set" drop-down, you'll want to select the LAE required field and cut/paste what you have in the "More Options" section there. 

Alexis Gutierrez January 5, 2023

Gave me a different error.

image.png

Mark Segall
Community Champion
January 5, 2023

Are you using a different field configuration for Sub-Tasks vs their parent tasks?  From the error, it appears that the AE required field is not available.

Alexis Gutierrez January 5, 2023

AE Required is a custom check box field. Does it matter if it's in the Description fields or the context fields?

image.png

Mark Segall
Community Champion
January 5, 2023

Ahh checkbox field will be a little different. Replace your edit issue action with this:

{{issue.parent.AE required.value}}
Alexis Gutierrez January 5, 2023

I tried that as well and still it's not working... I might have to have all those done manually.

Thank you,

0 votes
MrBadExample January 4, 2023

Hi @Alexis Gutierrez

 

There is no easy way to do it but you can try one of the following methods:

- Create custom ScriptRunner Listener that will update field value of Sub-task once it is modified in the parent Task.

- Use Jira Automation

- Or you can consider using one of plugins provided here: JRASERVER-5225

 

Regards,

Szymon

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events