I would like to create a Automated rule to trigger a Bug issue type any time a sprint is created. The bug issue type Should be part of the sprint and should go inside the sprint\be part of the sprint and not to pulled from the backlog.
I need a bug issue type to be created with certain fields . I would also want the Bug issue type to use the customized work flow I currently have for bug issue type (In my customized work flow condition I have added post functions, Subtask blocking condition, validators etc).
You shouldn't need the import statement for Issue.... it's already made available in the ScriptRunner post-function code. Only issue I can see is that you have a dollar sign $ before the issue variable that shouldn't be necessary, on this line:
def valueDzial = $issue.getCustomFieldValue(dzial).toString();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.