Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,344
Community Members
 
Community Events
165
Community Groups

How to copy fields from parent issue to subtask and pre-populate fields on create sub-task screen?

There are 3 fields (Start Date, End Date and Summery ) which I want to copy from parent issue to sub-task.

While creating sub-task, value of these fields need to populate on create sub-task screen.

How should I write Behavior for this requirement.

2 answers

1 accepted

1 vote
Answer accepted

Hi @RSP ,

If you are looking to copy the field value when a sub-task is created, you can add them as a post-function on create issue transition. 

JWME app offers a post-function "Copy field value from parent issue (JMWE app)".

Here is a script runner code - https://library.adaptavist.com/entity/copy-field-value-from-parent-issue-to-sub-task-upon-creation

Add this as the first post function on the Create step of a workflow

Thank You

Like Niranjan likes this

@RSP  - Kindly accept the answer so that the post will be marked as SOLVED. Thanks and Good luck

Hi @Niranjan , I found code to copy custom fields from parent issue to sub-task.

I have written behavior for same.

Like # people like this

Hi RSP,

I am also looking for the same.

can you please share the behavior code which worked good for you

So that I can also achieve the same

Thanks
Queenmary

Hello  @Niranjan 

Can we copy system field value on subtask upon creation screen using behaviour

Regards,

RSP

Hi @RSP ,

That is pretty much doable. You can add it as a postfunction ( of sub-task creation transition).

@RSP 

Hi RSP, 

I am also looking for the same.

can you please share the behavior code which worked good for you.

I use the JMWE (Copy field value from parent issue (JMWE app)) ,it can copy fields from parent fields after created the subtask, not before.

I also use Create Subtask - JCTS ,but this plug can not copy the system fields values.

 

Neither of these are ideal.
Is there a better way to automatically integrate the field values of the parent task when we create a subtask?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,543 views 37 45
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you