Hi there
I am using Script-runner Post-function to automatically create sub-tasks at certain points in my workflow. By default, sub-tasks inherit most fields from the parent task - which is great most of the time.
However, I do not want the sub-task to inherit the Story Points field from the parent task. And I can't figure out a way to override this, or set it to null.
Any ideas on how to script this into the 'Additional Actions' ?
Thanks & regards
Anika
From this answer: https://answers.atlassian.com/questions/18812102
You can set the story points of the subtask in Additional Actions using the custom field manager.
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Story Points'} issue.setCustomFieldValue(cf, null)
In this context, issue
refers to the subtask created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.