Newbie question: I've been successfully using the Jira REST API to create some issues. I am now trying to create Epic links and I am confused as to how this is supposed to work. I found a custom attribute that that appears to be relevant. I tried setting this attribute to the issue ID of the Epic using a structure like
{
"fields": { "customfield_13401": "MYPROJ-100" }
}
and I got
gh.epic.error.not.found
My questions are, then:
- Is setting this custom field the correct way to set the Epic link?
- If so, what value am I supposed to use?
- Is there a canonical way to determine what the custom field name is through the API? Presumably the field name could change in the future so ideally I should have the script determine this dynamically, right?
Any help is appreciated.