This section has use cases which help you understand the usage of the Calculated fields provided by JMCF.
On this page:
Table of Contents |
---|
Calculated (scripted) Date/Time custom field type
A Calculated A Calculated (scripted) Date/Time custom field type represents a java.util.Date
and is displayed as date+time.
Sample use cases:
...
Calculate and display the probable date of resolution (excluding weekends) for an issue based on its Priority
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculate and display the Sprint end date as a relative date in the Issue Navigator.
Expand | ||
---|---|---|
|
...
|
...
|
Calculated (scripted) Duration custom field type
A Calculated A Calculated (scripted) Duration custom field type represents a represents a duration and is displayed either as a duration string or as a number in a Long format representing the the number of seconds.
Sample use cases:
Calculate and display how many days an issue has been open
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculate the duration the field has been Flagged
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the number of days from issue creation to resolution in a custom field
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the difference between the current Due date and the last Due date.
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the
...
Total Original Estimate of all the Stories associated to the Epic.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculate and display the Remaining Estimate of all the Stories associated to the Epic.
Expand | ||
---|---|---|
|
...
|
Calculated (scripted) Multi-select custom field type
A Calculated A Calculated (scripted) Multi-select custom field type represents a collection of Options and is displayed as a String representing the option values.
Sample use cases:
Calculate and display the access to be provided to the user in a custom field based on the project role the user belongs to.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculated (scripted) Multi-user custom field type
A A Calculated (scripted) Multi-user custom field type represents a represents a collection of users and is displayed is displayed as a String representing the user display names
Sample use cases:
...
Calculate and display the assignees of the sub-tasks on the parent issue.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculated (scripted) Number custom field type
A A Calculated (scripted) Number custom field type represents a number and is displayed in Double format.
Sample use cases:
...
Calculate and display the number of
...
Stories associated to the Epic.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculate and display the number of unresolved issues blocking the current issue.
Expand | ||
---|---|---|
|
...
|
Calculate and display the number of times "Expected Delivery Date" has been modified.
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the number of issues linked to the current issue with link type "Interface" and the Affects Version/s "Platform".
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculated (scripted) Single-select custom field type
A A Calculated (scripted) Single-select custom field type represents an type represents an Option and is displayed as a String representing an Option value.
Sample use cases:
Calculate and display the company name with logo based on the value provided in the text field holding the URL of the company
Expand | ||
---|---|---|
|
...
|
...
|
Calculated (scripted) Single-user custom field type
A A Calculated (scripted) Single-user custom field type represents an represents an ApplicationUser and is displayed as a String representing the display name of the user.
Sample use cases:
Calculate and display the user who last commented on the issue
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the user who last modified the issue
Expand | ||
---|---|---|
|
...
|
...
|
Calculated (scripted) Text/Html custom field type
A A Calculated (scripted) Text/Html custom field displays text calculated using a Groovy script and supporting HTML formatting.
Sample use cases:
Calculate and display the last comment, its author, and timestamp in a text field.
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the current issues' linked
...
issues with "is blocked by" link type
...
and are not in Resolved
or Closed
status.
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display all the previous due dates as comma separated list with dates in YYYY-MM-DD format.
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display estimated hours for each day, using not more than 8 hours per day, until the due date.
Expand | ||
---|---|---|
|
...
|
Calculate and display the location of the Assignee of the issue from the User properties
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display
...
all the comments of a specific user.
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the Project category of the issue's project
Expand | ||
---|---|---|
|
...
|
...
|
Flag the issue on the issue view screen if the has been flagged.
Expand | ||
---|---|---|
|
...
|
...
|
Calculated (scripted) Wiki Text custom field type
A A Calculated (scripted) Wiki custom field displays text calculated using a Groovy script and optionally supporting wiki-style formatting.
Sample use cases:
Calculate and display the last comment, its author, and timestamp in a text field without escaping the formatting .
Expand | ||
---|---|---|
|
...
|
...
|
Last Field Value Change Author custom field type
A Last A Last Field Value change Author custom Author custom field type that represents the author represents the author of the last modification made to a field and is displayed as displayed as a String representing the display name of the user.
Sample use cases:
Calculate and display the author who has last added this issue to a Sprint
Expand | ||
---|---|---|
|
...
|
...
|
Last Field Value Change Date/Time custom field type
A A Last Field Value Change Date/Time custom field type represents a represents a java.util.Date
and is displayed as date+time.
Sample use cases:
Calculate and display the last time the issue was Flagged.
Expand | ||
---|---|---|
|
...
|
...
|
Parent Status custom field type
A Parent status calculated custom field type represents type represents the status of the issue's parent issue, if any, and is displayed as a String representing the status name.
Sample use cases:
Calculate and display the status of the parent issue and the name of the user to whom the issue is assigned.
Expand | ||
---|---|---|
|
...
|
...
|
Status entered by user custom field type
A Status entered by user custom field type represents a type represents a user who last (or first) moved the issue to the specified status and is displayed as a String representing the user display name.
Sample use cases:
Calculate and display the author name and the email address of the user who first Approved the issue
Expand | ||
---|---|---|
|
...
|
...
|
Status entered on date/time custom field type
A Status entered on Date/Time custom field type represents a type represents a date+time the issue has been last the issue has been last (or first) moved to the specified status and is displayed is displayed as date+time.
Sample use cases:
Calculate and display the date/time an issue entered the Approval status for the first time
Expand | ||
---|---|---|
|
...
|
...
|
...
Time in status custom field type
A A Calculated Time in status custom field type represents a type represents a duration and is displayed either as a duration String or as a number in a Long format representing the the number of seconds.
Sample use cases:
Calculate and display the time spent in the Pull request status
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the total resolution time for a ticket in an error banner if the time spent is more than 3 days
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the time spent in current status
Expand | ||
---|---|---|
|
...
|
...
|
Transition Caller custom field type
A A Transition Caller custom Caller custom field type returns returns the user who first/last executed a specific workflow transition and is and is displayed as a String representing the display name of the user.
Sample use cases:
Calculate and display the author who last fixed the issue
Expand | ||
---|---|---|
|
...
|
...
|
...
|
...
|
Calculate and display the author who has resolved the issue across different workflows with different transitions.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
...
|
Calculate and display the creator of the issue along with his/her username.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
...
|
Transition Callers custom field type
A A Transition Callers custom Callers custom field type rreturns rreturns the users who triggered a specific workflow transition and is and is displayed as a String representing the display names of the users.
Sample use cases:
Calculate and display the authors who approved the ticket
Expand | ||
---|---|---|
|
...
|
...
|
Calculate and display the authors who have Reviewed and Approved the ticket
Expand | ||
---|---|---|
|
...
|
...
|
Transition Count custom field type
A A Transition Count custom field represents the number custom field represents the number of times a specified workflow transition(s) was executed and is displayed as a number in Double format.
Sample use cases:
Calculate and count the number of times an issue fix has been rejected
Expand | ||
---|---|---|
|
...
|
...
|
Calculate the number of revisions done on a story before moving into development.
Expand | ||
---|---|---|
|
...
|
...
|
Transition Date/Time custom field type
A A Transition Date/Time custom field type represents type represents a java.util.Date
and is displayed as date+time.
Sample use cases:
Calculate and display the date/time as a relative time when the issue has been last approved.
Expand | ||
---|---|---|
|
...
|
...
|
...
|
Calculate and display the "Fix date" when an issue is moved to Fixed/Checked-in status for the first time
Expand | ||
---|---|---|
|
...
|
...
|
...
|