I'm using the JIRA python library (https://jira.readthedocs.io/en/master/index.html) and I'd like to create a new issue with a "related to" inward link to an existing issue.
#Existing issue...
existing_issue_key = PROJ-123
issue_dict = {
'project': {'id': 1},
'summary': 'Related issue for '+existing_issue_key,
'description': 'Look into this one',
'issuetype': {'name': 'Story'},
'issuelinks': [{"inwardIssue": {'key':existing_issue_key}}]
}
new_issue = jira.create_issue(fields=issue_dict)
When I try the above, I get the error:
JiraError HTTP 400 url: https://jira.mysite.com/rest/api/2/issue
text: Field 'issuelinks' cannot be set. It is not on the appropriate screen, or unknown.