Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo
This function returns the internal ID of a given project key, or a comma-separated list of project keys.


Code Block
languagebash
titleSyntax
linenumberstrue
projectIDFromKey(projectKeys) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
titleSyntax
linenumberstrue
projectIDFromKey("DEMO")


This example returns a text representing the internal ID of the project with the key "DEMO", e.g.:

10001


Code Block
languagebash
titleSyntax
linenumberstrue
projectIDFromKey(%{issue.project.key})


This example returns the internal ID of the current issue's project, e.g.:

10005


Code Block
languagebash
titleSyntax
linenumberstrue
projectIDFromKey(toString(distinct(fieldValue(%{issue.project.key}, linkedIssues()))))


This example returns a all internal IDs of projects from linked issues, e.g.:

10000, 10003

UI Expand
titlemore More info...

Steps in this example:

  1. Use linkedIssues() to get all issues linked to the current issue
  2. Use fieldValue() to get the project key from the linked issues
  3. Use distinct() to remove duplicate keys
  4. Use toString() to convert the returned text list to a text with comma separated keys




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projectKeys

Status
subtletrue
titletext

Text containing project keys in a comma-separated list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the internal ID for given project keys.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.9.3

Label