This function returns the internal ID of a given project key, or a comma-separated list of project keys.


projectIDFromKey(projectKeys) #Output: Text



Parser expressionDescription


projectIDFromKey("DEMO")


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

10001


projectIDFromKey(%{issue.project.key})


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

10005


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


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

10000, 10003

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




Parameters used in this function

ParameterInput (data type)Description
projectKeys

Text containing project keys in a comma-separated list.



This function returns a



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

new Project("SGC").id







Status
Tech review

Style guide




Short description

Returns the internal ID for given project keys.

Output

Available since

Label