Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

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

Code Block
languagebash
titleSyntax
linenumberstrue
projectId(keyOrNamenameOrKey) #Output: Number
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{projectId("My project")}

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

e.g. 10000

Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{projectId("MP")}

This example returns a number representing the ID of the project with the key MP

e.g. 10000. Please note that the ID of the project with the key MP is returned, if such a project key exists, even if there is a project with the name MP (see hints below).

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
keyOrNamenameOrKey

Status
subtletrue
titleText

The key or name of the project nameor its key.
UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber

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

Status
subtletrue
titlenull

UI Text Box
typetip

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 project with an exact match of project key or project name, if existent, and otherwise 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

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
colourGreen
titletododone

Style guide

Status
colourYellowGreen
titleReady for reviewdone

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

Page properties
hiddentrue
Short description

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

Output

Status
subtletrue
titlenumber

Available since

3.0.3

Label