Skip to end of banner
Go to start of banner

getIssueLinksDetail

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

Availability

This routine is available since katl-commons 3.0.13 (for JIRA 6.x use) and katl-commons 3.1.0 (for JIRA 7.x use).

Since katl-commons 4.0.4 it also returns the system links (example: is subtask of, issue in epic).

Syntax:

getIssueLinksDetail(issueKey)

Description:

Returns all the details about the links of an issue key.

Parameters:

Parameter name

Type

Required

Description

issueKeystringyesThe issue key

Return type:

JIssueLink[]

Example:

Example 1:

return getIssueLinksDetail("TEST-1");

Example 2:

JIssueLink[] jIssueLinks = getIssueLinksDetail("TEST-1");
for(JIssueLink jIssueLink in jIssueLinks){
    runnerLog("The linked issue " + jIssueLink.issue + " it has the following properties: "); 
    runnerLog("- link id : " + jIssueLink.id); 
    runnerLog("- link name : " +  jIssueLink.name);
    runnerLog("- direction : " + jIssueLink.direction);
    runnerLog("- description : " + jIssueLink.description);
}

See also:


  • No labels