This template displays the field value of the Priority field in the parent of the current work item.
If there is nothing to display, the result will be “None”.
Configuration
To use the Parent priority template, simply select it from the template grid. Filter by Priority 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:
%{parent.priority}
Details
1. What does the expression do?
The expression retrieves the Priority field value from the parent work item of the current work item.
2. Step-by-step breakdown
-
%{parent.priority}: This refers to the priority of the parent of the current work item.
3. Examples
-
If you are viewing a sub-task and its parent task has a priority of “High”, the expression will return “High”.
-
If there is no parent or the parent does not have a priority set, the field will display “None”.
4. Real-life use cases
-
Displaying the parent’s priority on sub-tasks so team members can quickly see how important the overall task is.
-
Creating custom reports or dashboards that show both the sub-task details and the parent’s priority for better context.