project()

This function returns the key of the project with a given ID.

Syntax
Bash
project(id) #Output: Text

Examples

Parser expression

Description

Bash
%{project(10000)}

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

e.g. DEV

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

id

number

A valid project ID.

Output

This function returns a text

If there is no project with the given ID, the function returns  null

Use this function to ensure expressions will continue to work after renaming projects:

Will continue to work after project name update 

Will fail after project name update

Bash
%{issue.project.key} = project(10000)
Bash
%{issue.project.key} = "CRM"


(books) Use cases and examples