How to copy custom single user field value to Reporter field?

Originally asked by Rakesh Govardhan on 18 October 2021 (original question)


How to copy single user field value to Reporter field


Comments:

Ariel Aguilar commented on 18 October 2021

Hi Rakesh!

What platform are you using Exalate on? (Jira Server, Jira cloud, ServiceNow, Azure DevOps for example?)

Kind regards,

Ariel

Rakesh Govardhan commented on 19 October 2021

Jira Server

Rakesh Govardhan commented on 22 October 2021

Hi Ariel,

Any update on this?

Ariel Aguilar commented on 22 October 2021

Hi Rakesh,

Let’s pretend you have the Outgoing script:

replica.customFields."Contact" = issue.customFields."Contact"

The incoming script to get it on the reporter should be:

issue.reporter = nodeHelper.getUserByEmail(replica.customFields."Contact".value)

Let me know if this works for you.

Kind regards,

Ariel

Rakesh Govardhan commented on 30 October 2021

Hi Ariel,

It didn’t work

Ariel Aguilar commented on 21 December 2021

If you instead:

issue.reporter = nodeHelper.getUserByEmail(replica.customFields."Contact".value.value)