Warning | ||
---|---|---|
| ||
The JIRA Misc Custom Fields project is being moved to a new site.Until the migration is done, please refrain from posting comments on this page, as they will be lost once the migration is done. |
Overview
The JIRA Misc Custom Fields plugin's objective is to provide several new types of custom fields for use in custom JIRA workflows as well as useful JQL functions.
...
- Parent Status Field (new in 1.2.2): a calculated custom field returning the Status of the issue's parent issue.
Included JQL function:
- currentUserPropertyAsList Home (new in 1.1): a JQL function that returns the value of a property of the current user, transforming comma-separated values into a list of values.
...
You can naturally include the real description of the custom field as well. For example:
Code Block |
---|
This field represents the number of Affected Versions.
<!-- @@Formula: issue.get("versions").size() --> |
...
The formula itself is a Java-style expression that can reference the value returned by the formula using the value variable. You can also use the numberTool object to format the number value:
Code Block |
---|
numberTool.format(value)
|
Example
To display an icon to the left of the field value depending on the field value:
Code Block |
---|
<!-- @@Format:
if (value > 21)
return "<img src='/images/icons/priority_trivial.gif'> "+numberTool.format(value);
else if (value >= 10)
return "<img src='/images/icons/priority_major.gif'> "+numberTool.format(value);
else
return "<img src='/images/icons/priority_blocker.gif'> "+numberTool.format(value);
-->
|
...
You can naturally include the real description of the custom field as well. For example:
Code Block |
---|
This field represents the date and time of the Resolution of this issue.
<!-- @TransitionId: 5 -->
<!-- @Execution: last --> |
...
You can naturally include the real description of the custom field as well. For example:
Code Block |
---|
This field represents the Resolver of this issue.
<!-- @TransitionId: 5 -->
<!-- @Execution: last --> |
...
This function is especially useful for building shared filters (and dashboards). You can, for example, create a standard filter that lists open issues for the current user's preferred projects, which you'll store in a user property:
Code Block |
---|
resolution = Unresolved AND project in currentUserPropertyAsList("myProjects")
|