Hi,
i would like to write a rule which will be set customfield to value of "CurrentUser" after IssueCommented Event. (something like this -> customfield_10604=CurrentUser)
How can i make this because this return an error?
Best Regard, Jakub
How about using $authcontext.loggedInUser.name ? Won't that work? It should expand all things in standard velocity context, see https://developer.atlassian.com/jiradev/jira-architecture/web-fragments/velocity-contexts
Hi MateJ,
We think it'd be useful if the ability to set the the currentUser() or the event author to a custom field is supported. Is it something going to be supported in the near future?
Best regards.
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.
You're right, I've checked the code and it doesn't provide the full Velocity context, only very limited subset - issue info (like key, summary etc) and customfield values. Due to that it's currently not possible however with a little bit of coding skills you can extend the EditIssueAction and implement this.
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.
Hi, thanks for your response.
but what about "Work Logged on Issue" event? I would like to create rule in JIRA Automation Plugin when somebody "Work Log on Issue" and then rule will set customfield to value="CurrentUser".
I won`t using postfunction in workflows.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can write post function, after issue commented you have to set customfield value to current user, you may look customfield and usermanager classes.
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.