xl8bot
1
Originally asked by ben friedman on 19 October 2020 (original question)
Hi,
i would like to set 2 fields between jsd and ZD.
1. ZD reporter email, to JSD reporter.
2. ZD reporter user name, to JSD custom field.
can you please advise on outgoing / incoming for each?
and a follow up question -
i would like to block any incoming on the JSD, if the reporter’s email is not exam@ple.com
should i add at the beginning of the incoming script
if (replica.reporter.email != exam@ple.com) {return}
xl8bot
2
Answer by Juan Grases on 20 October 2020
You can do that with:
//Outgoing ZD
replica.reporter = issue.reporter
//Incoming JSD
issue.reporter = nodeHelper.getUserByEmail(replica.reporter?.email)
issue.customFields."Custom Field Name".value = replica.reporter.username
Regarding your follow up question, your code looks fine, I would try that.
xl8bot
3
Answer by ben friedman on 20 October 2020
Juan Grases a follow up question - if the email of the incoming reporter doesnt exist in jira, how would i revise this statement
issue.reporter = nodeHelper.getUserByEmail(replica.reporter?.email)
to have a default of the EXALATE user?
xl8bot
Closed
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.