project()

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

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"

You need to quickly look up the IDs of custom fields, statuses, issue types, resolutions, priorities ...?

Try our app Admin Toolbox for Jira which will show the IDs of all relevant elements by default!


📚 Use cases and examples

Use case Workflow function Field type Automated action Parser functions