I am trying to use Atlassian.SDK 11.2.0 to link an issue to an epic, with the following link of code:
issue.CustomFields.Add("Epic Link", "MyEpic01");
where "Epic Link" is my field name, and "MyEpic01" is the epic I want to link my issue to.
However, when I run my program, I have an run-time error as below:
InvalidOperationException: Response Status Code: 400. Response Content: {errorMessage":["gh.epic.error.not.found"],"errors":[]}
However, I do not this problem if I create an issue and link it to the epic manually in the JIRA interface,
I saw another post that mentioned something that I need "Greenhopper" API.
https://community.atlassian.com/t5/Jira-questions/Can-we-edit-EPIC-Link-as-a-customfield-13386-using-jira-rest-api/qaq-p/1128908
However, I am not quite familiar with Greenhopper API and need more information on this. Or, is it possible to make my code work without Greenhopper?
Thanks for your help.