I could create Jira issues through the Java and REST service by following this Link. Now I want to link the Jira issues to the already created epic in the project. How can I do this through java code.
Asked
Active
Viewed 2,414 times
2 Answers
0
The JIRA REST API has it defined here.
From reading that pastebin example it would be a call similar to
createIssue
except that you would call what the JIRA Rest API has defined above with the required fields.

Welsh
- 5,138
- 3
- 29
- 43
0
Call to setFieldValue() method of IssueInputBuilder class. You need to pass custom ID of your epic link and the value(epic link which you had created). Hope this will work.
IssueInputBuilder issueBuilder = null;
issueBuilder = new IssueInputBuilder(PRJCT_KEY,ISSUE_TYPE);
issueBuilder.setFieldValue(epicLinkId, epicLinkvalue);
else generate json as below and call to put() method over REST.
"\"" + customEpicLinkId + "\":" + "\"" + epicLinkValue + "\"";

Asad Ali
- 389
- 1
- 10
- 28