Hi All,
I have a requirement to assign the auto created sub task to the parent issue creator (Current user)
Can someone please suggest me a code for that requirement in "Additional issue actions" section?
I think you are talking about ScriptRunner. If so then the code would look like this
issue.setAssignee(issue.getParentObject().getAssignee())
Hi @Alexey Matveev,
Thank you for the answer but this throws me a error such as
java.lang.NullPointerException: Cannot invoke method getAssignee() on null object
I wonder why as this subtask creation post function is the last in the list and parent issue creates before that.
how ever I tried this one and it worked for me.
issue.setAssignee(issue.getReporter())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you create sub tasks? Sub tasks can not be crated before the parent task, which means, that the code I gave you is triggered not for a subtask, but for the task. Make sure that the code is executed for a sub task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.