Subtask inherited values not changing later if parent value changes

When a subtask is created, it inherits the value from a custom field 'Customer' on the parent task via a Post Function 'The value(s) of field Customer will be set from the issue's parent (replacing existing value). This works great!

Later, we found out the parent task was incorrect and we changed the parent value to a different customer but the customer field on the subtasks did not change. This is not good!

How do I get around this? 

3 answers

This widget could not be displayed.

That's correct behaviour - subtasks are issues in their own right, and although grabbing a default from the parent is quite handy when they're created, the fields belong to the subtask, they're not tied to the parent.

You'll need a listener that can catch "parent updated" and run some code to iterate over the sub-tasks and  update the values.  I don't think there is one of these available for Cloud though.

(This is a weakness in JIRA in my opinion - there should be a way to flag subtask fields as directly inherited from the parent so that they appear, read only, on the sub-tasks, so you can search and sort on them, see them when looking only at the subtasks, and you don't have to think about maintaining them)

This widget could not be displayed.

Thanks for the quick answer! Sorry to hear this is a limitation though.

This widget could not be displayed.

A couple of options:

  1. Make editing of the parent data only available in a transition in order to force a post function update.  (Remove the field from the edit screen and add it to a transition screen on a self-directed transition.)
  2. Look at adding post functions in the sub-task workflow to grab data from the parent.




Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

49 views 1 0
Join discussion

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