Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Assign CurrentUser to a custom field on transition

Robert Kendrick June 12, 2018

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 

2 answers

0 votes
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2018

Hello @Robert Kendrick

If you use scriptrunner, you can find current user via api:

def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
0 votes
Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2018

@Robert Kendrick

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events