Status
Tech review

Style guide




Short description

Returns the key of the project with the given id.

Output

Available since




This function returns the key of the project with the given id.


project(id) #Output: Text



Parser expressionDescription


project(10000)


This example returns a text with the corresponding key of the project with the id 10000.



Parameters used in this function

ParameterInput (data type)Description
id

A valid project id.



This function returns a .

If there is no project with the given id, the function returns .


You might want to use this function for several parser expression where you are e.g. checking against the current project.

Imagine an expression like this:

%{issue.project.key} = project(10000)

instead of:

%{issue.project.key} = "CRM"