Hi,
I am using GH 6.1.5.
Problem -
I am auto creating Story when a Epic is created using the script runner. The Story so created can have links of type defined in "Issue Linking". But I need it to be the containment relationship using "Epic Link".
How do we acheive this?
1. Aks the script runner to enhance.
2. Write own groovy script.
I am looking at option 2, and following fails to update in Script console, (I am a beginner) -
IssueManager issueManager = ComponentManager.getInstance().getIssueManager();
MutableIssue storyIssue = issueManager.getIssueObject("Proj-10");
CustomFieldManager cfManager = ComponentManager.getInstance().getCustomFieldManager();
CustomField cf = cfManager.getCustomFieldObjectByName('Epic Link');
cf.getCustomFieldType().updateValue(cf,storyIssue, 'Proj-1');
Kindly help me with corrections/options to acheive this.
Thanks,
Vijai