I'm trying to do something that is well documented but for some reason it's not working for me....
I would like to default some custom fields when creating a subtask from the parent (from the JIRA UI) to values from the parent.
I have created the following post functions on the create issue transition. But the fields are not pre-populated with defaults from the parent when the 'create subtask' page is displayed.
What am I missing?
I thought that was the case but after reading this https://confluence.atlassian.com/display/JIRAKB/Post-Function+in+the+Create+Issue+Transition+does+not+Update+Assignee+due+to+Order?utm_source=SAC&utm_medium=dashboard it made me think that somehow it was executed before the create screen was displayed.
Is there any way to default a custom field on the subtask from the parent when the create screen is initially displayed? In fact, I really don't even want to show the custom field on the subtask but if I hide it I run into the problem in that the subtask rows are not returned in the JQL results.
Any help would be appreciated
Sorry for the late reply. I didn't recieve a mail about your answer. What you can do is to remove the fields from the subtask create screen. Use your postfunction as before. So once a subtask is created the fields are inherited from the parent. Don't hide the fields, simply don't put them on the view, create or edit screen of your subtask. You will be able to query them. Hope that helps.
That did the trick. Thanks very much! Note that I also opened this issue but I think that your solution may help others who want to set the field value on the subtask as opposed to providing a visible default. https://support.atlassian.com/servicedesk/customer/portal/23/JST-133222 thanks again Ron
There's now a very easy to configure way to keep fields for parents and sub-tasks in sync using Automation for JIRA!
(this example updates the description, but pretty much any field can be edited including custom fields)
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs