projectIDFromKey()

This function returns the internal

ID of a given project key, or a comma-separated list of project keys.


Bash
projectIDFromKey(projectKeys) #Output: Text


Examples

Parser expression

Description

Bash
projectIDFromKey("DEMO")

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

10001

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

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

10005

Bash
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

Parameter

Input (data type)

Description

projectKeys

text

Text containing project keys in a comma-separated list.

Output

This function returns a text


📚 Use cases and examples