Missing custom field while syncing epic Waiting for triage

Originally asked by Shadi El Sangedy on 08 April 2020 (original question)


While trying to sync an epic at creation (i.e. epic is created in instance A and immediately synced to instance B) I get this error message:

Script error
details: Could not create an issue with type `Epic` on project `ABCD`:
Field customfield_10007: Field 'customfield_10007' cannot be set. It is
not on the appropriate screen, or unknown.. `

now all of the custom fields I use in the epic have been included in the scripts. Plus earlier today I was able to sync an epic under the same conditions.

Has anyone else experienced this?


Answer by Shadi El Sangedy on 10 April 2020

Hi I was able to fix it, in the incoming sync script i had the following bit

Epic.receive()

However since I’m using a single connection for the issues this would mess with incoming epics

Using a conditional statement worked

if(issue.issueType != "Epic") {
	Epic.receive()
}

Allows to sync epics and preserve the Epic Link in stories


Answer by Howard Kenny on 08 April 2020

Hi,

I’d need to see the Outgoing Sync script from the source and the Incoming Sync on the receiving side. Also evidence that ‘customfield_10007’ is indeed on the Create screen on the receiving side.

Cheers,

Howard


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.