I won't copy the value from the System Field Reporter in a Custom field.
I try it with a Post Function in the Transition. Set Field Value.
And therewith the function issue.get("reporter")username.chars.
And get the error messages No user found with username 'issue.get("reporter")username.chars':
How can I solve that issue? What is the right function.
I am guessing that you are using a plugin similar to 'Jira Miscellaneous Workflow Extensions (JMWE)' for the function you mentioned.
Your function is almost correct. Here is what is should be.
issue.get("reporter").username
Additionally, you may need to test that the 'Reporter' field is not empty or null. If you have access to a groovy console (Jira > Administration > Add-ons > Groovy Console), you can test your scripts first.
Other functions
Alternatively, you can use functions to 'copy value from other field' post function, selecting source and destination fields. This may be easier to use.
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.