This template displays the name of the project category of the current work item’s project.
If there is nothing to display, the result will be “None”.
Configuration
To use the Project category template, simply select it from the template grid. Filter by Project to find it faster.
Parameters
This template does not require any additional parameter configuration.
Expert mode
If you switch to Expert mode you can see the formula field in the Expression Parser. You can now tweak the expression to create a custom formula field based on this template.
Expression
General expression:
%{issue.project.category}
Details
1. What does the expression do?
The expression returns the name of the project category for the project that the current work item belongs to. If the project does not have a category, the field will show “None”.
2. Step-by-step breakdown
-
%{issue.project.category}: Refers to the category of the project the current work item belongs to.
3. Examples
-
If a work item is in a project called "Website Redesign" and that project is in the "Marketing" category, the expression will return "Marketing".
-
If a work item is in a project with no category, the field will display "None".
4. Real-life use cases
-
Displaying the project category in a report or dashboard to help users quickly see which business area or department a work item belongs to.
-
Filtering or grouping work items by project category for portfolio management or resource planning.