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=getPortalForProject+%28Power+Scripts%29+-+15483825
widthauto

The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

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

Syntax

getPortalForProject(projectKey)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Retrieves a portal ID by searching for the projectKey. The function will return a null if the portal is not found.

Retrieves a portal ID by searching for the projectKey. The function will return a null if the portal is not found.

Parameters

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

Parameter name

Type

Required

Description

projectKey

String

Yes

The key of the selected project.

Return Type

Number

Example

Code Block
number portalId = getPortalForProject("PROJECT");
 
print("Return " + portalId);

Print: Return 10

See also

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

We've encountered an issue exporting this macro. Please try exporting this page again later.