The Adaptavist Group LogoDocumentation

Work with Issue Links

Create, retrieve, and remove links between Jira issues using HAPI, with examples for linking by link type ID.

With HAPI you can quickly and easily link issues. Link two issues as follows:

def source = Issues.getByKey('SR-1')
def destination = Issues.getByKey('SR-2')
            
source.link('blocks', destination)

Removing a link is just as easy. Remove a link as follows:

def source = Issues.getByKey('SR-1')
def destination = Issues.getByKey('SR-2')
            
source.unlink('blocks', destination)

Search documentation

Start typing to search the docs.