I am writing a script that automatically sets properties of issues in JIRA. I am able to set just about any field for an issue except for the epic link after the issue already has one. The following line returns a 500 error:
issue.update(customfield_10006 = epic)
where epic is the name of an existing epic link. Is there a way for me to remove the existing epic link or somehow update it without causing an internal server error?