status()

This function returns the status name for a given ID.

Bash
status(id) #Output: Text

Examples

Parser expression

Description

Bash
%{status(1)}

This example returns the name of the status with the ID 1,

e.g. Open

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

id

number

A valid status ID.

Output

This function returns a text

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

Use this function to ensure expressions will continue to work after renaming statuses.

Will continue to work after status name update 

āœ…

Will fail after status name update

āŒ

Bash
%{issue.status} = status(1)
Bash
%{issue.status} = "In Progress"


(books) Use cases and examples