JIRA: when creating a subtask inherit custom fields from parent

In JIRA, is there a way to create a subtask so that it inherits the values ​​of the custom field from the parent?

For example, we have custom fields called "Epic" and "Feature". If the story has an “Epoch” value of “Email” and a value of “Feature” of “Style Sheets”. When you click Create Subroutine, the subtask should automatically have "Epic" = "Email" and "Feature" = "Stylesheets".

How did you do this in the past?

thanks

+6
source share
2 answers

I do this in two ways:

  • Use the Create and Link plugin. You can specify which fields will inherit values, modify or add values, or explicitly set values. This works for both the standard and custom fields.
  • Add a post function to the Create step of the subtask workflow. When a task is created, it can check the parent for the Epic and Feature values ​​and use these values ​​to populate the subtask. I used the Jira Scripting Suite plugin to write a post function in Jython .
+2
source

It would be nice to take one step for this. The best I have found is two steps - to clone a problem that will duplicate all field values ​​and then change it to a subtask.

+1
source

Source: https://habr.com/ru/post/892801/


All Articles