Hello,
I'm looking to write a rule, either by post function or within Automation for Jira, that will put the currentUser's name into a custom field when they start a transition. I know the custom field's ID number, but I currently can't figure out how to get the current user's name into it.
At this time, I'm not looking to install any additional plugs to do this.
Thank you
Hello @Robert Kendrick
If you use scriptrunner, you can find current user via api:
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
To do this without plugin then you have to write your own plugin (Postfunction). However you can use this free plugin if you wish to as it has the functionality available.
https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions?hosting=cloud&tab=overview
Regards
Prakhar
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.