Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

linksHierarchyIssue

It takes an issue as input and builds the full hierarchy structure of linked issues

#

Name

Type

Required

Values

Description

1

Issue

String or integer

Yes

The issue key or id of the issue which is the root of the hierarchy

2

depth

Integer

No

Integer between 1 and 5

Limits the depth of the hierarchy structure. Default is 1.

3

Link direction

String

No

'Inward' or 'outward'

Excluded link direction

4

Link type

String

No

The link type name

List of the excluded link types separated by comma

5

Issue type

String

No

The issue type name

List of the excluded issue types separated by comma

6

Version name

String

No

The version name

The name of the versioned issues to exclude. It applies to the affects and fix version issue fields.

7

Resolved

String

No

Yes or No

Yes: include the resolved issues (default)
No: exclude the resolved issues

Examples

we take the following issue as an example:

...

#Example 1: 

Get the links hierarchy of level 1 for PUB-4.

...

#Example 2: 

Get the links hierarchy of level 2 for PUB-4, excluding the issues with "Version2"

...

Tip

Version filter

When using the filter to exclude versions, you should keep in mind that an issue will be filtered if all versions of the issue (affected and fix) are in the excluded versions:

for all version in ('Affects Version/s' U 'Fix Version/s'), version exists in 'Version filter'

#Example 3: 

Get the links hierarchy of level 2 for PUB-4, excluding initiatives

...