Forums

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

Copy reporter email to custom field

JP
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2019

Hi,

We have ScriptRunner and I'm trying to build a groovy script to copy the reporter's email address (Not user ID) to a custom field. The template ScriptRunner provided is giving an error. 

1 answer

0 votes
Taranjeet Singh
Community Champion
February 27, 2019

@JP Can you provide more details of the template you mentioned about? What error are you getting?

Also, let me know what is your purpose?

JP
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2019

@Taranjeet Singh The template was pulled from the Script Console page by clicking the Copy Custom Field link next to the Examples text below the code box. We are getting errors:[customfield_10060:Operation value must be a string.

 

We need this field populated with the reporter;s email address for automatic replies through email this issue app

Taranjeet Singh
Community Champion
February 28, 2019

@JP Can you rather use the example code from this documentation to see if you could make it work for your use case?

 

https://jamieechlin.atlassian.net/wiki/spaces/GRV/pages/33030170/Post+Functions

 

But this code has been rather used on a post-function of a workflow transition on which you can copy a field value to another.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events