Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

linkIssuelinkissue(issueKey1, issueKey2_or_url, issueLinkTypeName_or_linkTextinwardIssueKey, outwardIssueKey, issueLinkTypeName [, comment, securityLevel])

Package

Alias

Pkg Usage

Description

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

issueKey1

String

Yes

Key of the first issue to be linked.

issueKey2_or_url

String

Yes

Key of the second issue to be linked or the URL.

issueLinkTypeName_or_linkText

String

Yes

Issue link type name or the link text.

comment

String

No

Comment that will be posted on the selected issue.

securityLevel

String

No

Security level of comment.

Return Type

None

The returned value has no meaning.

Examples

Example 1

Code Block
languagejs
linkIssue(key, "TSTTEST-1235", "RelatesDuplicate");
//key represents the key of current issue, "TST-123" the key of the issue it will be linked to.

Result: current issue is linked to issue "TSTTEST-1235" by Relates Duplicates link type, such that "TSTTEST-1235" relates to duplicates the current issue and vice versathe current issue is duplicated by "TEST-5".

Example 2

Code Block
languagejs
linkIssue(key, "TSTTEST-1235", "TST-234Duplicate", "Blockssome text here");

...

The same as example 1 however a public comment will be added.

Example 3

Code Block
languagejs
linkIssue(key, "TSTTEST-1235", "https://confluence.example.comDuplicate", "Confluence Documentationsome text here", "Developers");

...

The same as example 1 however a comment will be added and only visable to users with the project role "Developers".

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "linkjira_links_routine" and space = currentSpace ( )
labelsarray_routines