Hello together,
I use Scriptrunner to automatically create a subtask when creating a task.
For the subtask, a predefined time estimate should now be stored ("Original Estimate").
Is it possible to set a fixed number of hours for all subtasks created under the task?
I have already found the option to predefine a custom field
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'MyCustomFieldType'}
issue.setCustomFieldValue(cf, 'my value')
However, the time tracking is not a custom field and probably does not work because of this.
Can someone please help me?
Greetings Michael
Welcome to the Atlassian Community!
Your guess is exactly right - time tracking is not a custom field and you get to system fields differently. From memory, try issue.setOriginalEstimate() - bear in mind this thinks in seconds, not hours or minutes.
Hello Nic,
Thank you very much for your help.
With this code line it works.
Greetings Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.