"Create sub-task" post-function copies all field values from Parent

JIRA version - 6.2.4

Script Runner version -  2.1.17

Using the post-function "Create Sub-task", I find that any values from any field on the parent task are copied over to the new sub-task. Is this expected behaviour?

There is nothing in the logs that I can see (on debug mode) that relates to this. Here's a screenshot showing the parent (bottom, 1STCREDIT_AE-155) and it's sub-tasks - as you can see all the field values are the same (I selected a random assortment of both custom and system fields).

1.PNG

1 answer

1 accepted

It does this by design, as generally people want fields copied, or at least it's easier to unset fields in the "additional issue actions" section than it is to copy them.

If you expand the Examples link there are examples for setting them, you will need to set to null any that you don't want to copy.

 

 

Thanks Jamie - I'll set them manually. It may be worth explicitly stating this in your documentation - the reason I came across this was because our users were mentioning other others in the Description field, which was then copied over to 9 sub-tasks, resulting in a lot of email traffic! Thanks, Angus

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

344 views 0 1
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you