Versions Compared

Key

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

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=linkIssue+-+434799241
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

linkIssue

linkissue(

issueKey1, issueKey2_or_url, issueLinkTypeName_or_linkText

inwardIssueKey, outwardIssueKey, issueLinkTypeName [, comment, securityLevel])

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Links two issues by a specified link type name. First issue will have the outward description of the link type, the second issue will have the inward description of the link type.

Links two issues by a specified link type name. First issue will have the outward description of the link type, the second issue will have the inward description of the link type.

...

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", "some text here"Confluence, Documentation"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 = "

...

jira_links_routine" and space = currentSpace ( )
labelsarray_routines
We've encountered an issue exporting this macro. Please try exporting this page again later.