Forums

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

Automation Rule to populate Custom Field

Brian Fisher October 1, 2021

I am trying to run a rule that will auto-populate a custom user-picker field.  Anytime an issue is created I want it to take the value of the reporter field (which I believe is itself a user picker field) and auto-populate the custom user-picker field with that same exact user.  Sounds like a simple enough request but I can't see a way to do this via a custom rule.  Thanks in advance

2 answers

1 accepted

1 vote
Answer accepted
Alex Koxaras _Relational_
Community Champion
October 5, 2021

Hi @Brian Fisher ,

Try this please:

ja rule.png

Keep in mind that you have to change the copy value, as to state "Copy Reporter from current issue".

Brian Fisher October 5, 2021

OK I don't see those options on my screen.  Maybe this is a version issue?  We are running Jira core 8.11.1

Alex Koxaras _Relational_
Community Champion
October 5, 2021

I think that it depends on the JA version and not on Jira version. None the less, you can try what @Fabian Lim proposed then, who said {{reporter.accountId}} and not {{reporter.displayName}} that you wrote.

Brian Fisher October 5, 2021

I tried a few different variables including {{reporter.accoundid}} none of them worked.  DisplayName is just the screenshot I took.  When you say JA do you mean Jira Applications?  Service Desk is the only one we use (4.11.1)

Alex Koxaras _Relational_
Community Champion
October 5, 2021

Jira Automation.

Hold on, let me try something else and come back to you.

Alex Koxaras _Relational_
Community Champion
October 5, 2021

@Brian Fisher try this {{issue.fields.reporter}}

I've tried on a jira server instance and worked.

test.png

Brian Fisher October 5, 2021

Thanks for your help.  However it is still not working on my end.  No matter what I try putting into a user picker field it doesn't like (first picture).  If I change the field type to a single line text field and then create a new issue to trigger the rule, it just displays the variable syntax and doesn't appear to convert it.  You say you have it working in a Jira server instance.  What version is it on your end?

 

Capture.JPGCapture1.JPG

Alex Koxaras _Relational_
Community Champion
October 5, 2021

@Brian Fisher can you please share the whole screen of this screenshot?

Capture.JPG

Brian Fisher October 5, 2021

Capture.JPG

Alex Koxaras _Relational_
Community Champion
October 5, 2021

What version of jjra automation you've got?

Brian Fisher October 5, 2021

Here is what I see under system info

 

Capture.JPG

Brian Fisher October 21, 2021

After doing a migration to the Jira cloud we were able to get this working.  Never got it working in our on-premise environment.  My guess is its a limitation of the version we are running

2 votes
Fabian Lim
Community Champion
October 1, 2021

Hi @Brian Fisher

I recommend you use jira automation with the smart values for your user picker custom field.

Try: {{reporter.accountId}}

Link: https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/

Brian Fisher October 4, 2021

That doesn't work.  maybe it has to be a different field type?

 

Capture.JPG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events