I am able to create the issue successfully but Epic Link which is a custom field is not set
api : https://track-api.com/jira/rest/api/2/issue
issue Post Data
{'fields': {'summary': 'summary', 'issuetype': {'self': 'https://track-api.com/jira/rest/api/2/issuetype/12200', 'id': '12200', 'description': '', 'name': 'Service Entitlement', 'subtask': False, 'avatarId': 17100}, 'customfield_17002': {'self': 'https://track-api.com/jira/rest/api/2/customFieldOption/18265', 'value': 'False', 'id': '18265'}, 'description': 'decription', 'project': {'self': 'https://track-api.com/jira/rest/api/2/project/25400', 'id': '25400', 'key': 'TESTPREM3', 'name': 'Test Premium3 Premium Health check', 'customfield_16900': {'self': 'https://track-api.com/jira/rest/api/2/customFieldOption/18260', 'value': 'Premium 3.0', 'id': '18260'}, 'customfield_10903': 'TESTPREM3-126'}}
customfield_10903( Epic Link)
You should use Jira software API for it POST /rest/agile/1.0/epic/{epicIdOrKey}/issue. You can find more info here:
https://docs.atlassian.com/jira-software/REST/7.3.1/#agile/1.0/epic-moveIssuesToEpic
Hello @nik1989
What is the error you see in the response, is the issue created successfully but without the epic link?
@Tarun Saprayes , issue is created successfully , epic is not linked
Is the epic link field available on the edit screen.
Thanks @Alexey Matveev for sharing this, I am a bit surprised that setting the epic link is not supported via normal REST API (fields element updating custom field) as there is not much info about it based on the error here -https://jira.atlassian.com/browse/JSWSERVER-7017
yes the epic link is available on edit screen.
It looks like you're new here. Sign in or register to get started.