How can I use an automation so a child issue to inherit parent issue fields?
Asked by Mireya Cintora:

**Objective**: When a child issue is created in the parent (epic) issue, I want the issue to copy the parent issue's field onto the child issue. In my case I need 4 fields:

- 2 custom fields: *Facility* \& *Payer/Entity*

- Jira field : *Labels*

- Jira \& Custom field: *Member's Name* to be copied from the parent summary field (Jira Field) that holds the member name.

**Cheery on Top:** If the parent issue field ever gets changed, then the child issue would update as well.

This is what I currently compiled based off some forums I found and some YouTube videos. Also I don't know anything about JSON or JQL coding :(

![Screenshot 2024-07-13 at 10.28.01?AM.png](/t5/image/serverpage/image-id/335458iE414547ACEB5E4BC/image-size/large?v=v2&px=999 "Screenshot 2024-07-13 at 10.28.01?AM.png")


Answers:
author: Trudy Claspill
body: Hello [@Mireya Cintora](/t5/user/viewprofilepage/user-id/5526385)

Your rule is structured incorrectly.

You have the correct trigger. The rule will be triggered when an issue is created.

If you want the rule to proceed only if the created issue is a child of an epic then you need two conditions:

1. A Field Value condition: Issue type is one of... and select all the issue types that can be direct children of Epics.

2. A Related Issues condition: Parent exists

Then in your Edit action select the field you want to copy from the parent Epic to the newly created issue.

For each of those fields click the ... Button to the right of the value entry field and select COPY. That will prefill the entry field with a statement "Copy \<the field\> from Current Issue".

Click on that text. That will open a pop up with two pull down fields; one for selecting the issues to copy from, and one for selecting the field to copy from. Change the Issue Field to Parent.

What would you want to do if the child issues was moved from one Epic to another?

You will have to have a separate rule that is triggered by field changes in the Epic.

In that rule you can use the Field Changed trigger and select all the fields.

Then you would add a Field Value condition to confirm that the trigger issue type is Epic.

The you would add a Branch: For each / Related Issues / Children

Then you would use the same Edit Action as the first rule.

You mentioned that you want to copy "Member's Name" from the Summary field. What type of field is "Member's Name"? Does the Summary field contain any text besides the member's name?

comments: author: Mireya Cintora
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)

1. **Inheriting Rule:** It was successful and i cant thank you enough for the help. For anyone who may need this here you go:

![Screenshot 2024-07-14 at 5.19.06?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335513i668AD1F9595AC3FF/image-size/large?v=v2&px=999 "Screenshot 2024-07-14 at 5.19.06?PM.png")

I did run into a problem but only because there is a field that is very common among other projects on our account so the automation keeps failing for that field:

![Screenshot 2024-07-14 at 5.23.38?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335514iACC6F385DFF0EDD0/image-size/large?v=v2&px=999 "Screenshot 2024-07-14 at 5.23.38?PM.png")

I tried to rename our project specific field but it does not appear on the list (Facility.) just added a period to make it stand out. So it suggested I use Advanced Editing which requires JSON which I know nothing about. However I do know that the custom field customfield.10068 which I am assuming ill need?

![Screenshot 2024-07-14 at 5.19.45?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335515iDC2774BA98C81007/image-size/large?v=v2&px=999 "Screenshot 2024-07-14 at 5.19.45?PM.png")

2. **Member's Name:**This Member's Name field is a short text custom field for the child issues. But in the parent card it does not exist as the name will be in the summary system field. So I want to have an automation to copy that summary system field and edit the short text Member's Name custom field. But since they are technically two different fields I have no idea if we can do that.


author: Trudy Claspill
body: #2 Regarding the copy of the Summary field to the Member' Name field, look at my previous response at the paragraph that starts with "Click on that text." In the popup I mentioned there you can change the source issue **and the source field** . Select the **Summaey** field as the source field.

#1 Is the Facility field one that you can edit manually for the issue? What is the field type for that field? You may indeed need to use Advanced Editing. We can provide specific guidance when we know the field type.


author: Mireya Cintora
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)

2. So I did that but its copying the parent summary field to the child summary field. But I need the parent summary field to copy to the Member's Name field on the issue.

**Parent Issue**

![Screenshot 2024-07-15 080549.png](https://community.atlassian.com/t5/image/serverpage/image-id/335690iC283D3B4640C5A91/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 080549.png")

**Child Issue**

![Screenshot 2024-07-15 080716.png](https://community.atlassian.com/t5/image/serverpage/image-id/335691i4B6F482ADD2DF9E1/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 080716.png")

1. Yes, the Facility is something we manually input. It is a short text field. We did want to utilize the drop down or checkbox field but we are limited to 55 options...


author: Trudy Claspill
body: #2 Please show us a screen image from the Edit action in the rule showing the details for where you set the Member's Name field. It should look something like this:

![Screenshot 2024-07-15 at 11.36.53?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335717iBCF9AD6CD7BAB791/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 at 11.36.53?AM.png")

#1 to use Advanced Editing to set the Facility field you would use this code

```
{ 
  "fields":{ 
    "customfield_10068": "{{issue.parent.customfield_10068}}"
  } 
}
```

Make sure that there is no other code in the JSON field other than what I've shown above.


author: Mireya Cintora
body: Awesome both solutions worked for me! Cant thank you enough, our workflow is alot smoother now!


author: Joseph Chung Yin
body: [@Mireya Cintora](/t5/user/viewprofilepage/user-id/5526385)

Again, I agreed what [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) suggested. The biggest issue in my opinion is that you want to copy parent's Summary field (portion of the value) for your child issues. Keep in mind that Summary field is a single line text field, thus there is no nomenclature controlling what one key into the field.

Please provide more information on your ask, so we can further assist you.

Best, Joseph Chung Yin


author: Nicolas Grossi
body: [@Mireya Cintora](/t5/user/viewprofilepage/user-id/5526385) You might want to take a look at this thread: [https://community.atlassian.com/t5/Jira-questions/Inheriting-fields-from-Parent-Project-to-Child-Epic-Stories/qaq-p/1773684?utm_source=gdn\&utm_medium=paid-display\&campaign=21252494340\&adgroup=\&device=c\&devicemodel=\&placement=\&aceid=\&creative=\&adtype=\&gclid=CjwKCAjwy8i0BhAkEiwAdFaeGFbB4c0ln8H3L-EfPrxYHWyviIsrGjrKcZIKAkov9ZbSu-75TZrVwBoCsa4QAvD_BwE\&country=\&network=x\&targetid=\&gad_source=1](https://community.atlassian.com/t5/Jira-questions/Inheriting-fields-from-Parent-Project-to-Child-Epic-Stories/qaq-p/1773684?utm_source=gdn&utm_medium=paid-display&campaign=21252494340&adgroup=&device=c&devicemodel=&placement=&aceid=&creative=&adtype=&gclid=CjwKCAjwy8i0BhAkEiwAdFaeGFbB4c0ln8H3L-EfPrxYHWyviIsrGjrKcZIKAkov9ZbSu-75TZrVwBoCsa4QAvD_BwE&country=&network=x&targetid=&gad_source=1)

HTH

Nicolas


Tags: cloud

jira-service-management

jira-service-management-cloud