Forums

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

Custom field should copy from parent to child

Ganesh
Contributor
April 6, 2022

Hi Community,

Is it possible to manage when a custom field should copy from parent when ever a subtask is created.

EX: when subtask is created, Description field should copy from parent to subtask!

Thanks in advance.

 

Best,

Ganesh.

1 answer

1 vote
Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2022

Hi @Ganesh 

You will need an add on such as

  • Automation for Jira,
  • Scriptrunner or
  • Power Shell

to build what you described. For automation for Jira, it offers options to copy field value from parent issue and you can specify what to copy.

As for the others you would need to write some scripts to achieve it where you get the parentIssue and in the workflow post function of create in child issue you parse the value to child issue.

In scriptrunner it should be something like:

Issue parentIssue
Issue childIssue = issue

childIssue.setDescription(parentIssue.getDescription())

I hope this helps.

Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2022

Suggest an answer

Log in or Sign up to answer