Clone wiki

JIRA Workflow Toolbox / post-functions / Read Project Property

Read a Project Property

This post-function allows to read the value of a project property and write the value into a field of the issue.

Example: How to read project property "StagingSiteURL" and write the value into "Testing Site" custom field

./post-functions/read-project-property/ex1-conf-1.png

Once configured post-function will look like this:

./post-functions/read-project-property/ex1-conf-final.png

JIRA Workflow Toolbox provides a boolean expressions parser, which is used in the main features of the plugin. This parser provides a set of functions for checking the existence of a project property, and reading its value:

FUNCTIONRETURNED VALUE
projectProperty(string property_name) : stringReturns a string with the value of project property with name property_name in current issue's project. Shows an error message if project property doesn't exist.
Example: projectProperty("maxNumberOfReopenings") returns "3", provided there is a string {maxNumberOfReopenings=3} in the description of current issue's project.
projectProperty(string property_name, string project_key) : string
Available since version 2.2
Returns a string with the value of project property with name property_name in project with key project_key. Shows an error message if project property doesn't exist.
Example: projectProperty("maxNumberOfReopenings", "CRM") returns "3", provided there is a string {maxNumberOfReopenings=3} in the description of project with key "CRM".
projectPropertyExists(string property_name) : boolean
Available since version 2.2
Returns true only if there is a project property with name property_name in current issue's project, i.e., if project's description contains a string like {property_name=value}.
Example: projectPropertyExists("maxNumberOfReopenings") returns true only if there is a string like {maxNumberOfReopenings=x} in the description of current issue's project.
projectPropertyExists(string property_name, string project_key) : boolean
Available since version 2.2
Returns true only if there is a project property with name property_name in project with key project_key.
Example: projectPropertyExists("maxNumberOfReopenings", "CRM") returns true only if there is a string like {maxNumberOfReopenings=x} in the description of project with key "CRM".


The parser is a common feature, making project properties available in the main features of the plugin:

Usage Examples

Related Features

Updated