We want to force the population of a "product code" field when a sub-task is created. For example if an issue is created with a product code of PC045 then we want any sub-task created to be populated by default (would be good if it could still be changed later) with PC045. This field is selected via a drop-down in the parent issue.
Yes, you can have fields inherit the value of the parents field.
In the create issue transition you can set the "Set Field Value from Parent" option in the post-functions. You can either do this in the default workflow you are using for the project, or make a separate workflow for sub-tasks. When only using this post-function, changing the value of the field in either the parent or sub-task will have no influence of the others value.
Hi Ben, I checked a test instance of OnDemand. The function becomes available after the 'JIRA Misc Workflow Extensions' have been enabled. As far as I could see, normal adminitrator privileges should allow you to enable this add-on through the "Manage Add-ons" section of your instance.
Hi Mick, I am unable to get this to work. I too am an OnDemand customer and have verified that the JIRA Misc Workflow Extensions add-on is enabled. I can get this post-function to work on any other transition, but for some reason it does not work on the Create Issue transition. Here are my post functions for the Create Issue transition: 1. Creates the issue originally. 2. Fire a Issue Created event that can be processed by the listeners. 3. The value(s) of field Due Date will be set from the issue's parent (replacing existing values). 4. The value(s) of field Environment will be set from the issue's parent (replacing existing values). Any ideas?
There's now a very easy to configure way to keep fields of parents and sub-tasks in sync using Automation for JIRA!
(this example transitions sub-tasks, but you could easily change this to edit the sub-tasks with a field value from the parent)
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot