JIRA: On Sub Task creation, inherit custom fields from Parent
Asked Answered
I

2

6

In JIRA, is there a way when a sub task is created, to have it inherit custom field values from the parent?

For example, we have custom fields called "Epic" and "Feature". If the story has an "Epic" value of "Email" and the "Feature" value of "Stylesheets". When you click the "Create sub task", the sub task should automatically have "Epic" = "Email" and "Feature" = "Stylesheets".

What ways have you done this in the past?

Thanks

Illiteracy answered 14/7, 2011 at 23:53 Comment(0)
H
2

I do this two ways:

  1. Use the Create and Link plugin. You can specify which fields will inherit values, alter or append the values, or explicitly set values. This works for both standard and custom field.
  2. Add a post-function to the "Create" step of the subtask's workflow. When the task is created it could check the parent for the values of "Epic" and "Feature" and use those values to populate the subtask. I used the Jira Scripting Suite plugin to write the post-function in Jython.
Hemelytron answered 17/7, 2011 at 22:57 Comment(0)
O
1

It would be nice to have a one step way to do this. The best I've found is two steps - clone the issue, which will duplicate all the field values, and then change it to a subtask.

Ormandy answered 15/7, 2011 at 3:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.