"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 answer

1 accepted

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

38 views 0 3
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