This function returns the internal ID of a given project key, or a comma-separated list of project keys.
Syntax
projectIDFromKey(projectKeys) #Output: Text
Examples
Parser expressionDescription
Syntax
projectIDFromKey("DEMO")

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

10001

Syntax
projectIDFromKey(%{issue.project.key})

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

10005

Syntax
projectIDFromKey(toString(distinct(fieldValue(%{issue.project.key}, linkedIssues()))))

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

10000, 10003

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
Additional information

Parameters used in this function

ParameterInput (data type)Description
projectKeys

TEXT

Text containing project keys in a comma-separated list.
Output

This function returns a TEXT


Use cases and examples