unlinkIssue
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !
Availability
This routine is available starting with SIL Engine™ 2.5.8.
This routine is available for Jira server and cloud deployment options.
Syntax
unlinkIssue(issueKey1, issueKey2, issueLinkTypeName)
or
unlinkIssue(issueKey1, issueKey2, issueLinkTypeName, keepReverseLink)
Description
Removes the specified link between two issues.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
issueKey1 | string | Yes | Key of the first issue to be unlinked. |
issueKey2 | string | Yes | Key of the second issue to be unlinked. |
issueLinkTypeName | string | Yes | Issue link type name. |
| boolean | No | Consider the direction of the link. |
Return type
None. The returned value has no meaning.
Example
Example 1
unlinkIssue(key, "TST-123", "Relates");
//key represents the key of current issue, "TST-123" the key of the issue it will be linked to.
Result: The Relates link between current issue and issue "TST-123" will be removed.
Example 2
unlinkIssue("TST-123", "TST-234", "Blocks");
Result: The Blocks link between issue "TST-123" and issue "TST-234" will be removed.
Example 3
unlinkIssue("TST-234", "TST-123", "Blocks", "true");Result: The Blocks link between issue "TST-234" and issue "TST-123" will not be removed because the link specified by the parameters of this call does not exist, but the reverse does.