/
How-to export project related metadata values
How-to export project related metadata values
Version 4.7.0 - 5.0.0
Since version 4.7 there is an easier way to export the project and user related metadata value: How to export the filter results
Version >= 5.0.0
Since version 5.0.0: The custom fields has been removed. See How-to configure the Customfield for alternatives.
You may want to display or export metadata values in the Jira issue search. Let's say you have the following configuration and want to show the stakeholders:
Step-by-step guide
You have two ways to do so
- Create a Custom field (e.g. Stakeholder) of the type "JIRA Metadata - View project metadata field" (Further infos: How-to configure the Customfield Sample 1)
- use Stakeholder as Default Value
- Create a Custom field (e.g. Stakeholder Complex) of the type "JIRA Metadata - Calc. field" (Further infos: How-to configure the Customfield Sample 2)
use the following source code as Default Value
#set( $value = $metadataService.getMetadataValue($issue.projectObject, 'Stakeholder') ) #if( $value == "Customer" ) #set( $someString = "Customer related" ) #elseif( $value == "Manager" ) #set( $someString = "Manager level" ) #else #set( $someString ="Others" ) #end $someString
Subsequently, the project's relative metadata value is displayed on the issue.
You can also display the fields as columns in the search and export them.
Related articles
, multiple selections available,
Related content
Metadata for JIRA 101
Metadata for JIRA 101
More like this
How-to activate the Metadata Viewer
How-to activate the Metadata Viewer
Read with this
Metadata Project Overview
Metadata Project Overview
More like this
How to create your first people filter
How to create your first people filter
Read with this
How-to search for issues related to metadata values
How-to search for issues related to metadata values
More like this
How-to use Metadata Workflow Postfunctions
How-to use Metadata Workflow Postfunctions
Read with this