You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This function returns the id of the project with a given key or name.

Syntax
projectId(keyOrName) #Output: Number
Examples
Parser expressionDescription
%{projectId("My project")}

This example returns a number representing the id of the project with the name My project

e.g. 10000

Additional information

Parameters used in this function

ParameterInput (data type)Description
keyOrName

TEXT

The key or the project name.
Output

This function returns a NUMBER

If there is no project with the given key or name, the function returns NULL

Use this function to retrieve a project id for a given project key or name.

Note that a partial project name will also work, but be aware that the function will return the id of the first project found.

Prefer project keys over project names, and prefer full project names over partial ones.


Use cases and examples