I need to create programmatically a link of type “relates to” from one issue to another.
I’ve found a method
createIssueLink(Long sourceIssueId, Long destinationIssueId, Long issueLinkTypeId, Long sequence, User remoteUser)
in IssueLinkManager, but I can’t find anyway to get the issueLinkTypeId.
Can anybody help me with that?
You probably want to use
and then iterate until you find the IssueLinkType instance you want, then linkType.getId()
For remote access I recommend using the jira-python library and the create_issue_link method.
Internally that method does this:
~Matt