Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
project(id) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{project(10000)}


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

e.g. DEV



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
id

Status
subtletrue
titlenumber

A valid project ID.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext
.

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

Status
subtletrue
titlenull
.


UI Text Box
typetip

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

Will continue to work after project name update (tick)Will fail after project name update (error)


Code Block
languagebash
linenumberstrue
%{issue.project.key} = project(10000)



Code Block
languagebash
linenumberstrue
%{issue.project.key} = "CRM"





Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_project" and space = currentSpace()




Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the name key of the project with a given ID.

Output

Status
subtletrue
titletext

Available since


Label