Statement starting from version 5.0: Due to some changes in Jira 9.0 we had to remove our custom fields. So they are no longer available since version 5.0. Statement till version 5.0: The field types "JIRA Metadata - View project metadata field" and "JIRA Metadata - Calc. field" should no longer be used. We recommend using "Scriptrunner for Jira" as a replacement.
Or our Post Function |
This page will show you, the provided customfield types. Be aware that you have to perform a project re-index, If you change some metadata value which was used within a searchable field. Otherwise the search-index of Jira will contain the old metadata value. |
The configuration will be explained using the following examples.
Sample 1 : metadata that should be displayed at every Issue (eg. the account info (accounting.code))
Sample 2 : metadata that should be used to calculate an Issue related Amount (eg. the hour rate (accounting.hour.rate))
Sample 3 : metadata that should be displayed at the Project Metadata Tab (eg. contact person or the contact person phone number)
Value Configuration
Go, as Project-Admin, into the project overview of the project of your choice (referenced as SampleProject) and select the tab JIRA Metadata.
Enter the following data within the Edit Metadata Section:
Key | Value | Goup | hidden | |
---|---|---|---|---|
Sample 1 | accounting.code | PK-23-Sys-3 | true | |
Sample 2 | accounting.hour.rate | 12.5 | true | |
Sample 3 a | Project Contact Person | Mayerson | Project Infos | false |
Sample 3 b | Project Contact Person Phone | 555-454-3422 | Project Infos | false |
Sample 3 c | External Project Key | PK-23 | false |
The result:
Click "Edit Default Value" on the "Configure Custom Field: Account Info" page
Insert the following velocity script and click "Set Default"
#set( $accRate = $metadataService.getMetadataValue($issue.projectObject, 'accounting.hour.rate') ) #set( $issueTime = $math.div($issue.timeSpent, 3600) ) #set( $amount = $math.mul($accRate, $issueTime) ) $!amount |
You can use the following parameters within your velocity script: |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|