It informs reporter=user is not account always when I use sub-task creation by script.
in workflow's post-function.
JIRA version: 7.3.3
scriptrunner version: 2.24.3
Solved it.
.setReporterId(user.key) --- here, we cannot use key or id, it can work by using username.
You haven't told us how you are configuring or writing the script, so we can't tell you exactly what is wrong, but my guess is that you don't have a user with a login of "reporter" and you have probably incorrectly assumed that parameters can accept variables
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.
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.